| 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(ZoomController::ZoomIconState state) { |
| 165 // Since panels don't have an Omnibox, they don't have a zoom icon. |
| 166 } |
| 167 |
| 168 void PanelBrowserWindow::SetZoomIconTooltipPercent(int zoom_percent) { |
| 169 // Since panels don't have an Omnibox, they don't have a zoom icon. |
| 170 } |
| 171 |
| 172 void PanelBrowserWindow::ShowZoomBubble(int zoom_percent) { |
| 173 // Since panels don't have an Omnibox, they don't have a zoom icon, so no |
| 174 // bubble will appear from it. |
| 175 } |
| 176 |
| 164 void PanelBrowserWindow::EnterFullscreen( | 177 void PanelBrowserWindow::EnterFullscreen( |
| 165 const GURL& url, FullscreenExitBubbleType type) { | 178 const GURL& url, FullscreenExitBubbleType type) { |
| 166 NOTIMPLEMENTED(); | 179 NOTIMPLEMENTED(); |
| 167 } | 180 } |
| 168 | 181 |
| 169 void PanelBrowserWindow::ExitFullscreen() { | 182 void PanelBrowserWindow::ExitFullscreen() { |
| 170 NOTIMPLEMENTED(); | 183 NOTIMPLEMENTED(); |
| 171 } | 184 } |
| 172 | 185 |
| 173 void PanelBrowserWindow::UpdateFullscreenExitBubbleContent( | 186 void PanelBrowserWindow::UpdateFullscreenExitBubbleContent( |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 } | 482 } |
| 470 | 483 |
| 471 void PanelBrowserWindow::TabInsertedAt(TabContentsWrapper* contents, | 484 void PanelBrowserWindow::TabInsertedAt(TabContentsWrapper* contents, |
| 472 int index, | 485 int index, |
| 473 bool foreground) { | 486 bool foreground) { |
| 474 if (panel_->auto_resizable()) { | 487 if (panel_->auto_resizable()) { |
| 475 DCHECK_EQ(0, index); | 488 DCHECK_EQ(0, index); |
| 476 panel_->EnableWebContentsAutoResize(contents->web_contents()); | 489 panel_->EnableWebContentsAutoResize(contents->web_contents()); |
| 477 } | 490 } |
| 478 } | 491 } |
| OLD | NEW |