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

Side by Side Diff: chrome/browser/ui/browser_window.h

Issue 10444040: Tracks changes to zoom icon and zoom percentage. Notifies browser window if the icon should be chan… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased Created 8 years, 6 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
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BROWSER_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "chrome/browser/lifetime/application_lifetime.h" 10 #include "chrome/browser/lifetime/application_lifetime.h"
11 #include "chrome/browser/ui/base_window.h" 11 #include "chrome/browser/ui/base_window.h"
12 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" 12 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
13 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h" 13 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h"
14 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" 14 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h"
15 #include "chrome/browser/ui/zoom/zoom_controller.h"
15 #include "chrome/common/content_settings_types.h" 16 #include "chrome/common/content_settings_types.h"
16 #include "ui/gfx/native_widget_types.h" 17 #include "ui/gfx/native_widget_types.h"
17 #include "webkit/glue/window_open_disposition.h" 18 #include "webkit/glue/window_open_disposition.h"
18 19
19 class Browser; 20 class Browser;
20 class BrowserWindowTesting; 21 class BrowserWindowTesting;
21 class DownloadShelf; 22 class DownloadShelf;
22 class FindBar; 23 class FindBar;
23 class GURL; 24 class GURL;
24 class LocationBar; 25 class LocationBar;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 virtual void SetDevToolsDockSide(DevToolsDockSide side) = 0; 124 virtual void SetDevToolsDockSide(DevToolsDockSide side) = 0;
124 125
125 // Update any loading animations running in the window. |should_animate| is 126 // Update any loading animations running in the window. |should_animate| is
126 // true if there are tabs loading and the animations should continue, false 127 // true if there are tabs loading and the animations should continue, false
127 // if there are no active loads and the animations should end. 128 // if there are no active loads and the animations should end.
128 virtual void UpdateLoadingAnimations(bool should_animate) = 0; 129 virtual void UpdateLoadingAnimations(bool should_animate) = 0;
129 130
130 // Sets the starred state for the current tab. 131 // Sets the starred state for the current tab.
131 virtual void SetStarredState(bool is_starred) = 0; 132 virtual void SetStarredState(bool is_starred) = 0;
132 133
134 // Sets the zoom icon state for the current tab.
135 virtual void SetZoomIconState(ZoomController::ZoomIconState state) = 0;
136
137 // Sets the zoom icon tooltip zoom percentage for the current tab.
138 virtual void SetZoomIconTooltipPercent(int zoom_percent) = 0;
139
140 // Show zoom bubble for the current tab.
141 virtual void ShowZoomBubble(int zoom_percent) = 0;
142
133 // Accessors for fullscreen mode state. 143 // Accessors for fullscreen mode state.
134 virtual void EnterFullscreen(const GURL& url, 144 virtual void EnterFullscreen(const GURL& url,
135 FullscreenExitBubbleType bubble_type) = 0; 145 FullscreenExitBubbleType bubble_type) = 0;
136 virtual void ExitFullscreen() = 0; 146 virtual void ExitFullscreen() = 0;
137 virtual void UpdateFullscreenExitBubbleContent( 147 virtual void UpdateFullscreenExitBubbleContent(
138 const GURL& url, 148 const GURL& url,
139 FullscreenExitBubbleType bubble_type) = 0; 149 FullscreenExitBubbleType bubble_type) = 0;
140 150
141 // Returns true if the fullscreen bubble is visible. 151 // Returns true if the fullscreen bubble is visible.
142 virtual bool IsFullscreenBubbleVisible() const = 0; 152 virtual bool IsFullscreenBubbleVisible() const = 0;
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 417
408 // Returns the ToolbarView. 418 // Returns the ToolbarView.
409 virtual ToolbarView* GetToolbarView() const = 0; 419 virtual ToolbarView* GetToolbarView() const = 0;
410 #endif 420 #endif
411 421
412 protected: 422 protected:
413 virtual ~BrowserWindowTesting() {} 423 virtual ~BrowserWindowTesting() {}
414 }; 424 };
415 425
416 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 426 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698