| 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_finder.h" | 9 #include "chrome/browser/ui/browser_finder.h" |
| 10 #include "chrome/browser/ui/panels/panel.h" | 10 #include "chrome/browser/ui/panels/panel.h" |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 154 |
| 155 void PanelBrowserWindow::UpdateLoadingAnimations(bool should_animate) { | 155 void PanelBrowserWindow::UpdateLoadingAnimations(bool should_animate) { |
| 156 native_panel_->UpdatePanelLoadingAnimations(should_animate); | 156 native_panel_->UpdatePanelLoadingAnimations(should_animate); |
| 157 } | 157 } |
| 158 | 158 |
| 159 void PanelBrowserWindow::SetStarredState(bool is_starred) { | 159 void PanelBrowserWindow::SetStarredState(bool is_starred) { |
| 160 // Since panels are typically not bookmarked extension UI windows, they don't | 160 // Since panels are typically not bookmarked extension UI windows, they don't |
| 161 // have starred state. | 161 // have starred state. |
| 162 } | 162 } |
| 163 | 163 |
| 164 void PanelBrowserWindow::SetZoomIconState(ZoomTabHelper::ZoomIconState state, |
| 165 int zoomPercent) { |
| 166 // Since panels don't have an Omnibox, they don't have a zoom icon. |
| 167 } |
| 168 |
| 169 void PanelBrowserWindow::ShowZoomBubble(int zoomPercent) { |
| 170 // Since panels don't have an Omnibox, they don't have a zoom icon, so no |
| 171 // bubble will appear from it. |
| 172 } |
| 173 |
| 164 void PanelBrowserWindow::EnterFullscreen( | 174 void PanelBrowserWindow::EnterFullscreen( |
| 165 const GURL& url, FullscreenExitBubbleType type) { | 175 const GURL& url, FullscreenExitBubbleType type) { |
| 166 NOTIMPLEMENTED(); | 176 NOTIMPLEMENTED(); |
| 167 } | 177 } |
| 168 | 178 |
| 169 void PanelBrowserWindow::ExitFullscreen() { | 179 void PanelBrowserWindow::ExitFullscreen() { |
| 170 NOTIMPLEMENTED(); | 180 NOTIMPLEMENTED(); |
| 171 } | 181 } |
| 172 | 182 |
| 173 void PanelBrowserWindow::UpdateFullscreenExitBubbleContent( | 183 void PanelBrowserWindow::UpdateFullscreenExitBubbleContent( |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 void PanelBrowserWindow::TabInsertedAt(TabContentsWrapper* contents, | 482 void PanelBrowserWindow::TabInsertedAt(TabContentsWrapper* contents, |
| 473 int index, | 483 int index, |
| 474 bool foreground) { | 484 bool foreground) { |
| 475 if (panel_->auto_resizable()) { | 485 if (panel_->auto_resizable()) { |
| 476 DCHECK_EQ(0, index); | 486 DCHECK_EQ(0, index); |
| 477 panel_->EnableWebContentsAutoResize(contents->web_contents()); | 487 panel_->EnableWebContentsAutoResize(contents->web_contents()); |
| 478 } | 488 } |
| 479 } | 489 } |
| 480 | 490 |
| 481 | 491 |
| OLD | NEW |