 }
 
 class SectionEditorWebViewMessagingController: NSObject, WKScriptMessageHandler {
-    weak var buttonSelectionDelegate: SectionEditorWebViewMessagingControllerButtonSelectionDelegate?
+    weak var buttonSelectionDelegate: SectionEditorWebViewMessagingControllerButtonMessageDelegate?
     weak var textSelectionDelegate: SectionEditorWebViewMessagingControllerTextSelectionDelegate?
 
     weak var webView: WKWebView!

                        self = .decreaseIndentDepth
                    case "increaseIndentDepth":
                        self = .increaseIndentDepth
                    default:
                        return nil
                    }

                    continue
                }
                buttonSelectionDelegate?.sectionEditorWebViewMessagingControllerDidReceiveButtonSelectionChangeMessage(self, button: button)
            }
        case (Message.Name.disableTheseButtons, let message as [[String: Any]]):
            for element in message {
                guard let kind = buttonKind(from: element) else {
                    continue
                }
                let button = Button(kind: kind)
                // Ignore debug buttons for now
                guard button.kind != .debug else {
                    continue
                }
                buttonSelectionDelegate?.sectionEditorWebViewMessagingControllerDidReceiveDisableButtonMessage(self, button: button)
            }
        default:
            assertionFailure("Unsupported message: \(message.name), \(message.body)")
