Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: chrome/browser/ui/views/location_bar/location_bar_view.h

Issue 1123943002: Move SecurityLevel into a class of its own (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pkasting nits Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/prefs/pref_member.h" 12 #include "base/prefs/pref_member.h"
13 #include "chrome/browser/extensions/extension_context_menu_model.h" 13 #include "chrome/browser/extensions/extension_context_menu_model.h"
14 #include "chrome/browser/ssl/security_level_policy.h"
14 #include "chrome/browser/ui/location_bar/location_bar.h" 15 #include "chrome/browser/ui/location_bar/location_bar.h"
15 #include "chrome/browser/ui/omnibox/omnibox_edit_controller.h" 16 #include "chrome/browser/ui/omnibox/omnibox_edit_controller.h"
16 #include "chrome/browser/ui/search/search_model_observer.h" 17 #include "chrome/browser/ui/search/search_model_observer.h"
17 #include "chrome/browser/ui/toolbar/toolbar_model.h" 18 #include "chrome/browser/ui/toolbar/toolbar_model.h"
18 #include "chrome/browser/ui/views/dropdown_bar_host.h" 19 #include "chrome/browser/ui/views/dropdown_bar_host.h"
19 #include "chrome/browser/ui/views/dropdown_bar_host_delegate.h" 20 #include "chrome/browser/ui/views/dropdown_bar_host_delegate.h"
20 #include "chrome/browser/ui/views/extensions/extension_popup.h" 21 #include "chrome/browser/ui/views/extensions/extension_popup.h"
21 #include "chrome/browser/ui/views/omnibox/omnibox_view_views.h" 22 #include "chrome/browser/ui/views/omnibox/omnibox_view_views.h"
22 #include "components/search_engines/template_url_service_observer.h" 23 #include "components/search_engines/template_url_service_observer.h"
23 #include "components/ui/zoom/zoom_event_manager_observer.h" 24 #include "components/ui/zoom/zoom_event_manager_observer.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 140
140 // Initializes the LocationBarView. 141 // Initializes the LocationBarView.
141 void Init(); 142 void Init();
142 143
143 // True if this instance has been initialized by calling Init, which can only 144 // True if this instance has been initialized by calling Init, which can only
144 // be called when the receiving instance is attached to a view container. 145 // be called when the receiving instance is attached to a view container.
145 bool IsInitialized() const; 146 bool IsInitialized() const;
146 147
147 // Returns the appropriate color for the desired kind, based on the user's 148 // Returns the appropriate color for the desired kind, based on the user's
148 // system theme. 149 // system theme.
149 SkColor GetColor(ToolbarModel::SecurityLevel security_level, 150 SkColor GetColor(SecurityLevelPolicy::SecurityLevel security_level,
150 ColorKind kind) const; 151 ColorKind kind) const;
151 152
152 // Returns the delegate. 153 // Returns the delegate.
153 Delegate* delegate() const { return delegate_; } 154 Delegate* delegate() const { return delegate_; }
154 155
155 // See comment in browser_window.h for more info. 156 // See comment in browser_window.h for more info.
156 void ZoomChangedForActiveTab(bool can_show_bubble); 157 void ZoomChangedForActiveTab(bool can_show_bubble);
157 158
158 // The zoom icon. It may not be visible. 159 // The zoom icon. It may not be visible.
159 ZoomView* zoom_view() { return zoom_view_; } 160 ZoomView* zoom_view() { return zoom_view_; }
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 int dropdown_animation_offset_; 500 int dropdown_animation_offset_;
500 501
501 // This is a debug state variable that stores if the WebContents was null 502 // This is a debug state variable that stores if the WebContents was null
502 // during the last RefreshPageAction. 503 // during the last RefreshPageAction.
503 bool web_contents_null_at_last_refresh_; 504 bool web_contents_null_at_last_refresh_;
504 505
505 DISALLOW_COPY_AND_ASSIGN(LocationBarView); 506 DISALLOW_COPY_AND_ASSIGN(LocationBarView);
506 }; 507 };
507 508
508 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 509 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698