OLD | NEW |
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 Loading... |
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::SetZoomIconState(ZoomController::ZoomIconState state) { | 157 void PanelBrowserWindow::ZoomChangedForActiveTab(bool can_show_bubble) { |
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) { | |
166 // Since panels don't have an Omnibox, they don't have a zoom icon, so no | 158 // Since panels don't have an Omnibox, they don't have a zoom icon, so no |
167 // bubble will appear from it. | 159 // view icon nor bubble will appear for this action. |
168 } | 160 } |
169 | 161 |
170 void PanelBrowserWindow::EnterFullscreen( | 162 void PanelBrowserWindow::EnterFullscreen( |
171 const GURL& url, FullscreenExitBubbleType type) { | 163 const GURL& url, FullscreenExitBubbleType type) { |
172 NOTIMPLEMENTED(); | 164 NOTIMPLEMENTED(); |
173 } | 165 } |
174 | 166 |
175 void PanelBrowserWindow::ExitFullscreen() { | 167 void PanelBrowserWindow::ExitFullscreen() { |
176 NOTIMPLEMENTED(); | 168 NOTIMPLEMENTED(); |
177 } | 169 } |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 } | 468 } |
477 | 469 |
478 void PanelBrowserWindow::TabInsertedAt(TabContents* contents, | 470 void PanelBrowserWindow::TabInsertedAt(TabContents* contents, |
479 int index, | 471 int index, |
480 bool foreground) { | 472 bool foreground) { |
481 if (panel_->auto_resizable()) { | 473 if (panel_->auto_resizable()) { |
482 DCHECK_EQ(0, index); | 474 DCHECK_EQ(0, index); |
483 panel_->EnableWebContentsAutoResize(contents->web_contents()); | 475 panel_->EnableWebContentsAutoResize(contents->web_contents()); |
484 } | 476 } |
485 } | 477 } |
OLD | NEW |