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 28 matching lines...) Expand all Loading... |
39 public views::TextfieldController { | 39 public views::TextfieldController { |
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 Profile* profile, | 45 Profile* profile, |
46 CommandUpdater* command_updater, | 46 CommandUpdater* command_updater, |
47 bool popup_window_mode, | 47 bool popup_window_mode, |
48 LocationBarView* location_bar, | 48 LocationBarView* location_bar, |
49 const gfx::FontList& font_list, | 49 const gfx::FontList& font_list); |
50 int font_y_offset); | |
51 virtual ~OmniboxViewViews(); | 50 virtual ~OmniboxViewViews(); |
52 | 51 |
53 // Initialize, create the underlying views, etc; | 52 // Initialize, create the underlying views, etc; |
54 void Init(); | 53 void Init(); |
55 | 54 |
56 // Sets the colors of the text view according to the theme. | 55 // Sets the colors of the text view according to the theme. |
57 void SetBaseColor(); | 56 void SetBaseColor(); |
58 | 57 |
59 // views::Textfield: | 58 // views::Textfield: |
60 virtual const char* GetClassName() const OVERRIDE; | 59 virtual const char* GetClassName() const OVERRIDE; |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 202 |
204 // Indicates if we want to select all text in the omnibox when we get a | 203 // Indicates if we want to select all text in the omnibox when we get a |
205 // GESTURE_TAP. We want to select all only when the textfield is not in focus | 204 // GESTURE_TAP. We want to select all only when the textfield is not in focus |
206 // and gets a tap. So we use this variable to remember focus state before tap. | 205 // and gets a tap. So we use this variable to remember focus state before tap. |
207 bool select_all_on_gesture_tap_; | 206 bool select_all_on_gesture_tap_; |
208 | 207 |
209 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); | 208 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); |
210 }; | 209 }; |
211 | 210 |
212 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ | 211 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ |
OLD | NEW |