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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 OmniboxViewViews(AutocompleteEditController* controller, | 55 OmniboxViewViews(AutocompleteEditController* controller, |
56 ToolbarModel* toolbar_model, | 56 ToolbarModel* toolbar_model, |
57 Profile* profile, | 57 Profile* profile, |
58 CommandUpdater* command_updater, | 58 CommandUpdater* command_updater, |
59 bool popup_window_mode, | 59 bool popup_window_mode, |
60 LocationBarView* location_bar); | 60 LocationBarView* location_bar); |
61 virtual ~OmniboxViewViews(); | 61 virtual ~OmniboxViewViews(); |
62 | 62 |
63 // Initialize, create the underlying views, etc; | 63 // Initialize, create the underlying views, etc; |
64 void Init(); | 64 void Init(views::View* popup_parent_view); |
65 | 65 |
66 // Sets the colors of the text view according to the theme. | 66 // Sets the colors of the text view according to the theme. |
67 void SetBaseColor(); | 67 void SetBaseColor(); |
68 | 68 |
69 // Called after key even is handled either by HandleKeyEvent or by Textfield. | 69 // Called after key even is handled either by HandleKeyEvent or by Textfield. |
70 bool HandleAfterKeyEvent(const views::KeyEvent& event, bool handled); | 70 bool HandleAfterKeyEvent(const views::KeyEvent& event, bool handled); |
71 | 71 |
72 // Called when KeyRelease event is generated on textfield. | 72 // Called when KeyRelease event is generated on textfield. |
73 bool HandleKeyReleaseEvent(const views::KeyEvent& event); | 73 bool HandleKeyReleaseEvent(const views::KeyEvent& event); |
74 | 74 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 // Should we select all the text when we see the mouse button get released? | 224 // Should we select all the text when we see the mouse button get released? |
225 // We select in response to a click that focuses the omnibox, but we defer | 225 // We select in response to a click that focuses the omnibox, but we defer |
226 // until release, setting this variable back to false if we saw a drag, to | 226 // until release, setting this variable back to false if we saw a drag, to |
227 // allow the user to select just a portion of the text. | 227 // allow the user to select just a portion of the text. |
228 bool select_all_on_mouse_release_; | 228 bool select_all_on_mouse_release_; |
229 | 229 |
230 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); | 230 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); |
231 }; | 231 }; |
232 | 232 |
233 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 233 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
OLD | NEW |