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

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

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 #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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 void PanelBrowserWindow::UpdateLoadingAnimations(bool should_animate) { 148 void PanelBrowserWindow::UpdateLoadingAnimations(bool should_animate) {
149 native_panel_->UpdatePanelLoadingAnimations(should_animate); 149 native_panel_->UpdatePanelLoadingAnimations(should_animate);
150 } 150 }
151 151
152 void PanelBrowserWindow::SetStarredState(bool is_starred) { 152 void PanelBrowserWindow::SetStarredState(bool is_starred) {
153 // Since panels are typically not bookmarked extension UI windows, they don't 153 // Since panels are typically not bookmarked extension UI windows, they don't
154 // have starred state. 154 // have starred state.
155 } 155 }
156 156
157 void PanelBrowserWindow::ZoomChangedForActiveTab(bool can_show_bubble) { 157 void PanelBrowserWindow::SetZoomIconState(ZoomController::ZoomIconState state) {
158 // Since panels don't have an Omnibox, they don't have a zoom icon.
159 }
160
161 void PanelBrowserWindow::SetZoomIconTooltipPercent(int zoom_percent) {
162 // Since panels don't have an Omnibox, they don't have a zoom icon.
163 }
164
165 void PanelBrowserWindow::ShowZoomBubble(int zoom_percent) {
158 // Since panels don't have an Omnibox, they don't have a zoom icon, so no 166 // Since panels don't have an Omnibox, they don't have a zoom icon, so no
159 // view icon nor bubble will appear for this action. 167 // bubble will appear from it.
160 } 168 }
161 169
162 void PanelBrowserWindow::EnterFullscreen( 170 void PanelBrowserWindow::EnterFullscreen(
163 const GURL& url, FullscreenExitBubbleType type) { 171 const GURL& url, FullscreenExitBubbleType type) {
164 NOTIMPLEMENTED(); 172 NOTIMPLEMENTED();
165 } 173 }
166 174
167 void PanelBrowserWindow::ExitFullscreen() { 175 void PanelBrowserWindow::ExitFullscreen() {
168 NOTIMPLEMENTED(); 176 NOTIMPLEMENTED();
169 } 177 }
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 } 476 }
469 477
470 void PanelBrowserWindow::TabInsertedAt(TabContents* contents, 478 void PanelBrowserWindow::TabInsertedAt(TabContents* contents,
471 int index, 479 int index,
472 bool foreground) { 480 bool foreground) {
473 if (panel_->auto_resizable()) { 481 if (panel_->auto_resizable()) {
474 DCHECK_EQ(0, index); 482 DCHECK_EQ(0, index);
475 panel_->EnableWebContentsAutoResize(contents->web_contents()); 483 panel_->EnableWebContentsAutoResize(contents->web_contents());
476 } 484 }
477 } 485 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window.h ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698