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 29 matching lines...) Expand all Loading... |
40 public: | 40 public: |
41 // The internal view class name. | 41 // The internal view class name. |
42 static const char kViewClassName[]; | 42 static const char kViewClassName[]; |
43 | 43 |
44 OmniboxViewViews(OmniboxEditController* controller, | 44 OmniboxViewViews(OmniboxEditController* controller, |
45 ToolbarModel* toolbar_model, | 45 ToolbarModel* toolbar_model, |
46 Profile* profile, | 46 Profile* profile, |
47 CommandUpdater* command_updater, | 47 CommandUpdater* command_updater, |
48 bool popup_window_mode, | 48 bool popup_window_mode, |
49 LocationBarView* location_bar, | 49 LocationBarView* location_bar, |
50 const gfx::Font& font, | 50 const gfx::FontList& font_list, |
51 int font_y_offset); | 51 int font_y_offset); |
52 virtual ~OmniboxViewViews(); | 52 virtual ~OmniboxViewViews(); |
53 | 53 |
54 // Initialize, create the underlying views, etc; | 54 // Initialize, create the underlying views, etc; |
55 void Init(); | 55 void Init(); |
56 | 56 |
57 // Sets the colors of the text view according to the theme. | 57 // Sets the colors of the text view according to the theme. |
58 void SetBaseColor(); | 58 void SetBaseColor(); |
59 | 59 |
60 // views::Textfield: | 60 // views::Textfield: |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 196 |
197 // Indicates if we want to select all text in the omnibox when we get a | 197 // Indicates if we want to select all text in the omnibox when we get a |
198 // GESTURE_TAP. We want to select all only when the textfield is not in focus | 198 // GESTURE_TAP. We want to select all only when the textfield is not in focus |
199 // and gets a tap. So we use this variable to remember focus state before tap. | 199 // and gets a tap. So we use this variable to remember focus state before tap. |
200 bool select_all_on_gesture_tap_; | 200 bool select_all_on_gesture_tap_; |
201 | 201 |
202 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); | 202 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); |
203 }; | 203 }; |
204 | 204 |
205 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 205 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
OLD | NEW |