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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window.h

Issue 10736028: Refactor browser window zoom handling and enable zoom icon on all platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac Created 8 years, 5 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_PANELS_PANEL_BROWSER_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_H_
7 7
8 #include "chrome/browser/ui/browser_window.h" 8 #include "chrome/browser/ui/browser_window.h"
9 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" 9 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; 53 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE;
54 virtual BrowserWindowTesting* GetBrowserWindowTesting() OVERRIDE; 54 virtual BrowserWindowTesting* GetBrowserWindowTesting() OVERRIDE;
55 virtual StatusBubble* GetStatusBubble() OVERRIDE; 55 virtual StatusBubble* GetStatusBubble() OVERRIDE;
56 virtual void UpdateTitleBar() OVERRIDE; 56 virtual void UpdateTitleBar() OVERRIDE;
57 virtual void BookmarkBarStateChanged( 57 virtual void BookmarkBarStateChanged(
58 BookmarkBar::AnimateChangeType change_type) OVERRIDE; 58 BookmarkBar::AnimateChangeType change_type) OVERRIDE;
59 virtual void UpdateDevTools() OVERRIDE; 59 virtual void UpdateDevTools() OVERRIDE;
60 virtual void SetDevToolsDockSide(DevToolsDockSide side) OVERRIDE; 60 virtual void SetDevToolsDockSide(DevToolsDockSide side) OVERRIDE;
61 virtual void UpdateLoadingAnimations(bool should_animate) OVERRIDE; 61 virtual void UpdateLoadingAnimations(bool should_animate) OVERRIDE;
62 virtual void SetStarredState(bool is_starred) OVERRIDE; 62 virtual void SetStarredState(bool is_starred) OVERRIDE;
63 virtual void SetZoomIconState(ZoomController::ZoomIconState state) OVERRIDE; 63 virtual void ZoomChangedForActiveTab(bool can_show_bubble) OVERRIDE;
64 virtual void SetZoomIconTooltipPercent(int zoom_percent) OVERRIDE;
65 virtual void ShowZoomBubble(int zoom_percent) OVERRIDE;
66 virtual void EnterFullscreen( 64 virtual void EnterFullscreen(
67 const GURL& url, FullscreenExitBubbleType type) OVERRIDE; 65 const GURL& url, FullscreenExitBubbleType type) OVERRIDE;
68 virtual void ExitFullscreen() OVERRIDE; 66 virtual void ExitFullscreen() OVERRIDE;
69 #if defined(OS_WIN) 67 #if defined(OS_WIN)
70 virtual void SetMetroSnapMode(bool enable) OVERRIDE; 68 virtual void SetMetroSnapMode(bool enable) OVERRIDE;
71 virtual bool IsInMetroSnapMode() const OVERRIDE; 69 virtual bool IsInMetroSnapMode() const OVERRIDE;
72 #endif 70 #endif
73 virtual void UpdateFullscreenExitBubbleContent( 71 virtual void UpdateFullscreenExitBubbleContent(
74 const GURL& url, 72 const GURL& url,
75 FullscreenExitBubbleType bubble_type) OVERRIDE; 73 FullscreenExitBubbleType bubble_type) OVERRIDE;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 Panel* panel_; // Weak pointer. Owns us. 167 Panel* panel_; // Weak pointer. Owns us.
170 168
171 // Platform specifc implementation for panels. It'd be one of 169 // Platform specifc implementation for panels. It'd be one of
172 // PanelBrowserWindowGtk/PanelBrowserView/PanelBrowserWindowCocoa. 170 // PanelBrowserWindowGtk/PanelBrowserView/PanelBrowserWindowCocoa.
173 NativePanel* native_panel_; // Weak, owns us (through ownership of Panel). 171 NativePanel* native_panel_; // Weak, owns us (through ownership of Panel).
174 172
175 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindow); 173 DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindow);
176 }; 174 };
177 175
178 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_H_ 176 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698