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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 } | 94 } |
95 | 95 |
96 void PanelBrowserWindow::Restore() { | 96 void PanelBrowserWindow::Restore() { |
97 panel_->Restore(); | 97 panel_->Restore(); |
98 } | 98 } |
99 | 99 |
100 void PanelBrowserWindow::SetBounds(const gfx::Rect& bounds) { | 100 void PanelBrowserWindow::SetBounds(const gfx::Rect& bounds) { |
101 panel_->SetBounds(bounds); | 101 panel_->SetBounds(bounds); |
102 } | 102 } |
103 | 103 |
104 void PanelBrowserWindow::SetDraggableRegion(SkRegion* region) { | |
105 panel_->SetDraggableRegion(region); | |
106 } | |
107 | |
108 void PanelBrowserWindow::FlashFrame(bool flash) { | 104 void PanelBrowserWindow::FlashFrame(bool flash) { |
109 panel_->FlashFrame(flash); | 105 panel_->FlashFrame(flash); |
110 } | 106 } |
111 | 107 |
112 bool PanelBrowserWindow::IsAlwaysOnTop() const { | 108 bool PanelBrowserWindow::IsAlwaysOnTop() const { |
113 return panel_->IsAlwaysOnTop(); | 109 return panel_->IsAlwaysOnTop(); |
114 } | 110 } |
115 | 111 |
116 // ------------------------------------------------------------ | 112 // ------------------------------------------------------------ |
117 // BrowserWindow interface - either does nothing, delegates to | 113 // BrowserWindow interface - either does nothing, delegates to |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 } | 476 } |
481 | 477 |
482 void PanelBrowserWindow::TabInsertedAt(TabContents* contents, | 478 void PanelBrowserWindow::TabInsertedAt(TabContents* contents, |
483 int index, | 479 int index, |
484 bool foreground) { | 480 bool foreground) { |
485 if (panel_->auto_resizable()) { | 481 if (panel_->auto_resizable()) { |
486 DCHECK_EQ(0, index); | 482 DCHECK_EQ(0, index); |
487 panel_->EnableWebContentsAutoResize(contents->web_contents()); | 483 panel_->EnableWebContentsAutoResize(contents->web_contents()); |
488 } | 484 } |
489 } | 485 } |
OLD | NEW |