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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.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/prefs/pref_member.h" | 14 #include "chrome/browser/prefs/pref_member.h" |
15 #include "chrome/browser/search_engines/template_url_service_observer.h" | 15 #include "chrome/browser/search_engines/template_url_service_observer.h" |
16 #include "chrome/browser/ui/omnibox/location_bar.h" | 16 #include "chrome/browser/ui/omnibox/location_bar.h" |
17 #include "chrome/browser/ui/omnibox/omnibox_edit_controller.h" | 17 #include "chrome/browser/ui/omnibox/omnibox_edit_controller.h" |
18 #include "chrome/browser/ui/search/search_model_observer.h" | 18 #include "chrome/browser/ui/search/search_model_observer.h" |
19 #include "chrome/browser/ui/toolbar/toolbar_model.h" | 19 #include "chrome/browser/ui/toolbar/toolbar_model.h" |
20 #include "chrome/browser/ui/views/dropdown_bar_host.h" | 20 #include "chrome/browser/ui/views/dropdown_bar_host.h" |
21 #include "chrome/browser/ui/views/dropdown_bar_host_delegate.h" | 21 #include "chrome/browser/ui/views/dropdown_bar_host_delegate.h" |
22 #include "chrome/browser/ui/views/extensions/extension_popup.h" | 22 #include "chrome/browser/ui/views/extensions/extension_popup.h" |
23 #include "chrome/browser/ui/zoom/zoom_controller.h" | |
24 #include "content/public/browser/notification_observer.h" | 23 #include "content/public/browser/notification_observer.h" |
25 #include "content/public/browser/notification_registrar.h" | 24 #include "content/public/browser/notification_registrar.h" |
26 #include "ui/gfx/font.h" | 25 #include "ui/gfx/font.h" |
27 #include "ui/gfx/rect.h" | 26 #include "ui/gfx/rect.h" |
28 #include "ui/views/controls/native/native_view_host.h" | 27 #include "ui/views/controls/native/native_view_host.h" |
29 #include "ui/views/drag_controller.h" | 28 #include "ui/views/drag_controller.h" |
30 | 29 |
31 #if defined(USE_AURA) | 30 #if defined(USE_AURA) |
32 #include "ui/compositor/layer_animation_observer.h" | 31 #include "ui/compositor/layer_animation_observer.h" |
33 #endif | 32 #endif |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 // security style, and, if |tab_for_state_restoring| is non-NULL, also restore | 176 // security style, and, if |tab_for_state_restoring| is non-NULL, also restore |
178 // saved state that the tab holds. | 177 // saved state that the tab holds. |
179 void Update(const content::WebContents* tab_for_state_restoring); | 178 void Update(const content::WebContents* tab_for_state_restoring); |
180 | 179 |
181 // Returns corresponding profile. | 180 // Returns corresponding profile. |
182 Profile* profile() const { return profile_; } | 181 Profile* profile() const { return profile_; } |
183 | 182 |
184 // Returns the delegate. | 183 // Returns the delegate. |
185 Delegate* delegate() const { return delegate_; } | 184 Delegate* delegate() const { return delegate_; } |
186 | 185 |
187 // Sets the tooltip for the zoom icon. | 186 void ZoomChangedForActiveTab(bool can_show_bubble); |
188 void SetZoomIconTooltipPercent(int zoom_percent); | |
189 | |
190 // Sets the zoom icon state. | |
191 void SetZoomIconState(ZoomController::ZoomIconState zoom_icon_state); | |
192 | |
193 // Shows the zoom bubble. | |
194 void ShowZoomBubble(int zoom_percent); | |
195 | 187 |
196 // Sets |preview_enabled| for the PageAction View associated with this | 188 // Sets |preview_enabled| for the PageAction View associated with this |
197 // |page_action|. If |preview_enabled| is true, the view will display the | 189 // |page_action|. If |preview_enabled| is true, the view will display the |
198 // PageActions icon even though it has not been activated by the extension. | 190 // PageActions icon even though it has not been activated by the extension. |
199 // This is used by the ExtensionInstalledBubble to preview what the icon | 191 // This is used by the ExtensionInstalledBubble to preview what the icon |
200 // will look like for the user upon installation of the extension. | 192 // will look like for the user upon installation of the extension. |
201 void SetPreviewEnabledPageAction(ExtensionAction* page_action, | 193 void SetPreviewEnabledPageAction(ExtensionAction* page_action, |
202 bool preview_enabled); | 194 bool preview_enabled); |
203 | 195 |
204 // Retrieves the PageAction View which is associated with |page_action|. | 196 // Retrieves the PageAction View which is associated with |page_action|. |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 | 547 |
556 #if defined(USE_AURA) | 548 #if defined(USE_AURA) |
557 // Observer for a fade-in animation. | 549 // Observer for a fade-in animation. |
558 scoped_ptr<FadeAnimationObserver> fade_animation_observer_; | 550 scoped_ptr<FadeAnimationObserver> fade_animation_observer_; |
559 #endif | 551 #endif |
560 | 552 |
561 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); | 553 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); |
562 }; | 554 }; |
563 | 555 |
564 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 556 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
OLD | NEW |