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

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

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 #include "chrome/browser/ui/panels/panel_browser_window.h" 5 #include "chrome/browser/ui/panels/panel_browser_window.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_commands.h" 9 #include "chrome/browser/ui/browser_commands.h"
10 #include "chrome/browser/ui/browser_finder.h" 10 #include "chrome/browser/ui/browser_finder.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 void PanelBrowserWindow::UpdateLoadingAnimations(bool should_animate) { 152 void PanelBrowserWindow::UpdateLoadingAnimations(bool should_animate) {
153 native_panel_->UpdatePanelLoadingAnimations(should_animate); 153 native_panel_->UpdatePanelLoadingAnimations(should_animate);
154 } 154 }
155 155
156 void PanelBrowserWindow::SetStarredState(bool is_starred) { 156 void PanelBrowserWindow::SetStarredState(bool is_starred) {
157 // Since panels are typically not bookmarked extension UI windows, they don't 157 // Since panels are typically not bookmarked extension UI windows, they don't
158 // have starred state. 158 // have starred state.
159 } 159 }
160 160
161 void PanelBrowserWindow::SetZoomIconState(ZoomController::ZoomIconState state) { 161 void PanelBrowserWindow::ZoomChangedForActiveTab(bool can_show_bubble) {
162 // Since panels don't have an Omnibox, they don't have a zoom icon.
163 }
164
165 void PanelBrowserWindow::SetZoomIconTooltipPercent(int zoom_percent) {
166 // Since panels don't have an Omnibox, they don't have a zoom icon.
167 }
168
169 void PanelBrowserWindow::ShowZoomBubble(int zoom_percent) {
170 // Since panels don't have an Omnibox, they don't have a zoom icon, so no 162 // Since panels don't have an Omnibox, they don't have a zoom icon, so no
171 // bubble will appear from it. 163 // view icon nor bubble will appear for this action.
172 } 164 }
173 165
174 void PanelBrowserWindow::EnterFullscreen( 166 void PanelBrowserWindow::EnterFullscreen(
175 const GURL& url, FullscreenExitBubbleType type) { 167 const GURL& url, FullscreenExitBubbleType type) {
176 NOTIMPLEMENTED(); 168 NOTIMPLEMENTED();
177 } 169 }
178 170
179 void PanelBrowserWindow::ExitFullscreen() { 171 void PanelBrowserWindow::ExitFullscreen() {
180 NOTIMPLEMENTED(); 172 NOTIMPLEMENTED();
181 } 173 }
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 } 476 }
485 477
486 void PanelBrowserWindow::TabInsertedAt(TabContents* contents, 478 void PanelBrowserWindow::TabInsertedAt(TabContents* contents,
487 int index, 479 int index,
488 bool foreground) { 480 bool foreground) {
489 if (panel_->auto_resizable()) { 481 if (panel_->auto_resizable()) {
490 DCHECK_EQ(0, index); 482 DCHECK_EQ(0, index);
491 panel_->EnableWebContentsAutoResize(contents->web_contents()); 483 panel_->EnableWebContentsAutoResize(contents->web_contents());
492 } 484 }
493 } 485 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698