| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ | 5 #ifndef CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ |
| 6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ | 6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 size_t selection_start, | 78 size_t selection_start, |
| 79 size_t selection_end); | 79 size_t selection_end); |
| 80 void OnSubmit(const string16& query); | 80 void OnSubmit(const string16& query); |
| 81 void OnCancel(const string16& query); | 81 void OnCancel(const string16& query); |
| 82 void OnPopupResize(const gfx::Rect& bounds); | 82 void OnPopupResize(const gfx::Rect& bounds); |
| 83 void OnMarginChange(int start, int end); | 83 void OnMarginChange(int start, int end); |
| 84 void OnDetermineIfPageSupportsInstant(); | 84 void OnDetermineIfPageSupportsInstant(); |
| 85 void OnAutocompleteResults( | 85 void OnAutocompleteResults( |
| 86 const std::vector<InstantAutocompleteResult>& results); | 86 const std::vector<InstantAutocompleteResult>& results); |
| 87 void OnUpOrDownKeyPressed(int count); | 87 void OnUpOrDownKeyPressed(int count); |
| 88 void OnCancelSelection(const string16& query); |
| 88 void OnKeyCaptureChange(bool is_key_capture_enabled); | 89 void OnKeyCaptureChange(bool is_key_capture_enabled); |
| 89 void OnSetDisplayInstantResults(bool display_instant_results); | 90 void OnSetDisplayInstantResults(bool display_instant_results); |
| 90 void OnThemeChanged(const ThemeBackgroundInfo& theme_info); | 91 void OnThemeChanged(const ThemeBackgroundInfo& theme_info); |
| 91 void OnThemeAreaHeightChanged(int height); | 92 void OnThemeAreaHeightChanged(int height); |
| 92 void OnFontInformationReceived(const string16& omnibox_font, | 93 void OnFontInformationReceived(const string16& omnibox_font, |
| 93 size_t omnibox_font_size); | 94 size_t omnibox_font_size); |
| 94 | 95 |
| 95 // Returns the current zoom factor of the render view or 1 on failure. | 96 // Returns the current zoom factor of the render view or 1 on failure. |
| 96 double GetZoom() const; | 97 double GetZoom() const; |
| 97 | 98 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 113 ThemeBackgroundInfo theme_info_; | 114 ThemeBackgroundInfo theme_info_; |
| 114 int theme_area_height_; | 115 int theme_area_height_; |
| 115 bool display_instant_results_; | 116 bool display_instant_results_; |
| 116 string16 omnibox_font_; | 117 string16 omnibox_font_; |
| 117 size_t omnibox_font_size_; | 118 size_t omnibox_font_size_; |
| 118 | 119 |
| 119 DISALLOW_COPY_AND_ASSIGN(SearchBox); | 120 DISALLOW_COPY_AND_ASSIGN(SearchBox); |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ | 123 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ |
| OLD | NEW |