| 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_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 class LocationBarView : public LocationBar, | 70 class LocationBarView : public LocationBar, |
| 71 public LocationBarTesting, | 71 public LocationBarTesting, |
| 72 public views::View, | 72 public views::View, |
| 73 public views::DragController, | 73 public views::DragController, |
| 74 public gfx::AnimationDelegate, | 74 public gfx::AnimationDelegate, |
| 75 public ChromeOmniboxEditController, | 75 public ChromeOmniboxEditController, |
| 76 public DropdownBarHostDelegate, | 76 public DropdownBarHostDelegate, |
| 77 public TemplateURLServiceObserver, | 77 public TemplateURLServiceObserver, |
| 78 public ui_zoom::ZoomEventManagerObserver { | 78 public ui_zoom::ZoomEventManagerObserver { |
| 79 public: | 79 public: |
| 80 // The location bar view's class name. | |
| 81 static const char kViewClassName[]; | |
| 82 | |
| 83 class Delegate { | 80 class Delegate { |
| 84 public: | 81 public: |
| 85 // Should return the current web contents. | 82 // Should return the current web contents. |
| 86 virtual content::WebContents* GetWebContents() = 0; | 83 virtual content::WebContents* GetWebContents() = 0; |
| 87 | 84 |
| 88 virtual ToolbarModel* GetToolbarModel() = 0; | 85 virtual ToolbarModel* GetToolbarModel() = 0; |
| 89 virtual const ToolbarModel* GetToolbarModel() const = 0; | 86 virtual const ToolbarModel* GetToolbarModel() const = 0; |
| 90 | 87 |
| 91 // Creates Widget for the given delegate. | 88 // Creates Widget for the given delegate. |
| 92 virtual views::Widget* CreateViewsBubble( | 89 virtual views::Widget* CreateViewsBubble( |
| (...skipping 20 matching lines...) Expand all Loading... |
| 113 }; | 110 }; |
| 114 | 111 |
| 115 enum ColorKind { | 112 enum ColorKind { |
| 116 BACKGROUND = 0, | 113 BACKGROUND = 0, |
| 117 TEXT, | 114 TEXT, |
| 118 SELECTED_TEXT, | 115 SELECTED_TEXT, |
| 119 DEEMPHASIZED_TEXT, | 116 DEEMPHASIZED_TEXT, |
| 120 EV_BUBBLE_TEXT_AND_BORDER, | 117 EV_BUBBLE_TEXT_AND_BORDER, |
| 121 }; | 118 }; |
| 122 | 119 |
| 120 // The location bar view's class name. |
| 121 static const char kViewClassName[]; |
| 122 |
| 123 LocationBarView(Browser* browser, | 123 LocationBarView(Browser* browser, |
| 124 Profile* profile, | 124 Profile* profile, |
| 125 CommandUpdater* command_updater, | 125 CommandUpdater* command_updater, |
| 126 Delegate* delegate, | 126 Delegate* delegate, |
| 127 bool is_popup_mode); | 127 bool is_popup_mode); |
| 128 | 128 |
| 129 ~LocationBarView() override; | 129 ~LocationBarView() override; |
| 130 | 130 |
| 131 // Initializes the LocationBarView. | 131 // Initializes the LocationBarView. |
| 132 void Init(); | 132 void Init(); |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 BooleanPrefMember edit_bookmarks_enabled_; | 474 BooleanPrefMember edit_bookmarks_enabled_; |
| 475 | 475 |
| 476 // This is a debug state variable that stores if the WebContents was null | 476 // This is a debug state variable that stores if the WebContents was null |
| 477 // during the last RefreshPageAction. | 477 // during the last RefreshPageAction. |
| 478 bool web_contents_null_at_last_refresh_; | 478 bool web_contents_null_at_last_refresh_; |
| 479 | 479 |
| 480 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 480 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
| 481 }; | 481 }; |
| 482 | 482 |
| 483 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 483 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |