OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 virtual void OnTemporaryTextMaybeChanged( | 111 virtual void OnTemporaryTextMaybeChanged( |
112 const string16& display_text, | 112 const string16& display_text, |
113 bool save_original_selection) OVERRIDE; | 113 bool save_original_selection) OVERRIDE; |
114 virtual bool OnInlineAutocompleteTextMaybeChanged( | 114 virtual bool OnInlineAutocompleteTextMaybeChanged( |
115 const string16& display_text, size_t user_text_length) OVERRIDE; | 115 const string16& display_text, size_t user_text_length) OVERRIDE; |
116 virtual void OnRevertTemporaryText() OVERRIDE; | 116 virtual void OnRevertTemporaryText() OVERRIDE; |
117 virtual void OnBeforePossibleChange() OVERRIDE; | 117 virtual void OnBeforePossibleChange() OVERRIDE; |
118 virtual bool OnAfterPossibleChange() OVERRIDE; | 118 virtual bool OnAfterPossibleChange() OVERRIDE; |
119 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 119 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
120 virtual gfx::NativeView GetRelativeWindowForPopup() const OVERRIDE; | 120 virtual gfx::NativeView GetRelativeWindowForPopup() const OVERRIDE; |
121 virtual void SetInstantSuggestion(const string16& input, | 121 virtual void SetInstantSuggestion(const string16& input) OVERRIDE; |
122 bool animate_to_complete) OVERRIDE; | |
123 virtual string16 GetInstantSuggestion() const OVERRIDE; | 122 virtual string16 GetInstantSuggestion() const OVERRIDE; |
124 virtual int TextWidth() const OVERRIDE; | 123 virtual int TextWidth() const OVERRIDE; |
125 virtual bool IsImeComposing() const OVERRIDE; | 124 virtual bool IsImeComposing() const OVERRIDE; |
126 virtual int GetMaxEditWidth(int entry_width) const OVERRIDE; | 125 virtual int GetMaxEditWidth(int entry_width) const OVERRIDE; |
127 virtual views::View* AddToView(views::View* parent) OVERRIDE; | 126 virtual views::View* AddToView(views::View* parent) OVERRIDE; |
128 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; | 127 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; |
129 virtual gfx::Font GetFont() OVERRIDE; | 128 virtual gfx::Font GetFont() OVERRIDE; |
130 virtual int WidthOfTextAfterCursor() OVERRIDE; | 129 virtual int WidthOfTextAfterCursor() OVERRIDE; |
131 | 130 |
132 // views::TextfieldController: | 131 // views::TextfieldController: |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 // Should we select all the text when we see the mouse button get released? | 200 // Should we select all the text when we see the mouse button get released? |
202 // We select in response to a click that focuses the omnibox, but we defer | 201 // We select in response to a click that focuses the omnibox, but we defer |
203 // until release, setting this variable back to false if we saw a drag, to | 202 // until release, setting this variable back to false if we saw a drag, to |
204 // allow the user to select just a portion of the text. | 203 // allow the user to select just a portion of the text. |
205 bool select_all_on_mouse_release_; | 204 bool select_all_on_mouse_release_; |
206 | 205 |
207 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); | 206 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); |
208 }; | 207 }; |
209 | 208 |
210 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 209 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
OLD | NEW |