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

Side by Side Diff: chrome/browser/ui/gtk/location_bar_view_gtk.h

Issue 10831372: Revert 152080 - Refactor browser window zoom handling and enable zoom icon on all platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
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_GTK_LOCATION_BAR_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <map> 10 #include <map>
11 #include <string> 11 #include <string>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/scoped_vector.h" 16 #include "base/memory/scoped_vector.h"
17 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
18 #include "chrome/browser/command_observer.h" 18 #include "chrome/browser/command_observer.h"
19 #include "chrome/browser/extensions/extension_context_menu_model.h" 19 #include "chrome/browser/extensions/extension_context_menu_model.h"
20 #include "chrome/browser/extensions/image_loading_tracker.h" 20 #include "chrome/browser/extensions/image_loading_tracker.h"
21 #include "chrome/browser/prefs/pref_member.h" 21 #include "chrome/browser/prefs/pref_member.h"
22 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" 22 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h"
23 #include "chrome/browser/ui/gtk/menu_gtk.h" 23 #include "chrome/browser/ui/gtk/menu_gtk.h"
24 #include "chrome/browser/ui/omnibox/location_bar.h" 24 #include "chrome/browser/ui/omnibox/location_bar.h"
25 #include "chrome/browser/ui/omnibox/omnibox_edit_controller.h" 25 #include "chrome/browser/ui/omnibox/omnibox_edit_controller.h"
26 #include "chrome/browser/ui/view_ids.h" 26 #include "chrome/browser/ui/view_ids.h"
27 #include "chrome/browser/ui/zoom/zoom_controller.h"
27 #include "chrome/common/content_settings_types.h" 28 #include "chrome/common/content_settings_types.h"
28 #include "chrome/common/extensions/extension_action.h" 29 #include "chrome/common/extensions/extension_action.h"
29 #include "content/public/browser/notification_observer.h" 30 #include "content/public/browser/notification_observer.h"
30 #include "content/public/browser/notification_registrar.h" 31 #include "content/public/browser/notification_registrar.h"
31 #include "content/public/common/page_transition_types.h" 32 #include "content/public/common/page_transition_types.h"
32 #include "googleurl/src/gurl.h" 33 #include "googleurl/src/gurl.h"
33 #include "ui/base/animation/animation_delegate.h" 34 #include "ui/base/animation/animation_delegate.h"
34 #include "ui/base/animation/slide_animation.h" 35 #include "ui/base/animation/slide_animation.h"
35 #include "ui/base/gtk/gtk_signal.h" 36 #include "ui/base/gtk/gtk_signal.h"
36 #include "ui/base/gtk/owned_widget_gtk.h" 37 #include "ui/base/gtk/owned_widget_gtk.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 94
94 // Retrieves the GtkWidget which is associated with PageActionView 95 // Retrieves the GtkWidget which is associated with PageActionView
95 // corresponding to |page_action|. 96 // corresponding to |page_action|.
96 GtkWidget* GetPageActionWidget(ExtensionAction* page_action); 97 GtkWidget* GetPageActionWidget(ExtensionAction* page_action);
97 98
98 // Updates the location bar. We also reset the bar's permanent text and 99 // Updates the location bar. We also reset the bar's permanent text and
99 // security style, and, if |tab_for_state_restoring| is non-NULL, also 100 // security style, and, if |tab_for_state_restoring| is non-NULL, also
100 // restore saved state that the tab holds. 101 // restore saved state that the tab holds.
101 void Update(const content::WebContents* tab_for_state_restoring); 102 void Update(const content::WebContents* tab_for_state_restoring);
102 103
104 // Show the zoom bubble.
105 void ShowZoomBubble(int zoom_percent);
106
103 // Show the bookmark bubble. 107 // Show the bookmark bubble.
104 void ShowStarBubble(const GURL& url, bool newly_boomkarked); 108 void ShowStarBubble(const GURL& url, bool newly_boomkarked);
105 109
106 // Shows the Chrome To Mobile bubble. 110 // Shows the Chrome To Mobile bubble.
107 void ShowChromeToMobileBubble(); 111 void ShowChromeToMobileBubble();
108 112
109 // Shows the bookmark bubble. 113 // Sets the tooltip for the zoom icon.
110 void ShowZoomBubble(); 114 void SetZoomIconTooltipPercent(int zoom_percent);
111 115
112 // Happens when the zoom changes for the active tab. |can_show_bubble| will be 116 // Sets the zoom icon state.
113 // true if it was a user action and a bubble could be shown. 117 void SetZoomIconState(ZoomController::ZoomIconState zoom_icon_state);
114 void ZoomChangedForActiveTab(bool can_show_bubble);
115 118
116 // Set the starred state of the bookmark star. 119 // Set the starred state of the bookmark star.
117 void SetStarred(bool starred); 120 void SetStarred(bool starred);
118 121
119 // OmniboxEditController: 122 // OmniboxEditController:
120 virtual void OnAutocompleteAccept(const GURL& url, 123 virtual void OnAutocompleteAccept(const GURL& url,
121 WindowOpenDisposition disposition, 124 WindowOpenDisposition disposition,
122 content::PageTransition transition, 125 content::PageTransition transition,
123 const GURL& alternate_nav_url) OVERRIDE; 126 const GURL& alternate_nav_url) OVERRIDE;
124 virtual void OnChanged() OVERRIDE; 127 virtual void OnChanged() OVERRIDE;
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 BooleanPrefMember edit_bookmarks_enabled_; 539 BooleanPrefMember edit_bookmarks_enabled_;
537 540
538 // Used to remember the URL and title text when drag&drop has begun. 541 // Used to remember the URL and title text when drag&drop has begun.
539 GURL drag_url_; 542 GURL drag_url_;
540 string16 drag_title_; 543 string16 drag_title_;
541 544
542 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); 545 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk);
543 }; 546 };
544 547
545 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ 548 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/location_bar_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698