             backgroundColor = highlighted ? UIColor.grayColor() : SuggestionBackgroundColor
         }
     }
+}
+
+/**
+ * Button whose insets are included in its intrinsic size.
+ */
+private class InsetButton: UIButton {
+    override init() {
+        super.init()
+    }
+
+    override init(frame: CGRect) {
+        super.init(frame: frame)
+    }
+
+    required init(coder aDecoder: NSCoder) {
+        assertionFailure("Not supported")
+    }
+
+    private override func intrinsicContentSize() -> CGSize {
+        var size = super.intrinsicContentSize()
+        size.width += titleEdgeInsets.left + titleEdgeInsets.right
+        size.height += titleEdgeInsets.top + titleEdgeInsets.bottom
+        return size
+    }
 }
private let SuggestionCellVerticalPadding: CGFloat = 8
private let SuggestionCellMaxRows = 2

private let SearchImage = "search"

// searchEngineScrollViewContent is the button container. It has a gray background color,

        }
    }

    func SELdidClickOptInYes() {
        searchEngines.shouldShowSearchSuggestions = true
        searchEngines.shouldShowSearchSuggestionsOptIn = false
        querySuggestClient()
        layoutSuggestionsOptInPrompt()
    }

    func SELdidClickOptInNo() {
        searchEngines.shouldShowSearchSuggestions = false
        searchEngines.shouldShowSearchSuggestionsOptIn = false
        layoutSuggestionsOptInPrompt()
    }

    func keyboardHelper(keyboardHelper: KeyboardHelper, keyboardWillShowWithState state: KeyboardState) {
        animateSearchEnginesWithKeyboard(state)
    }
