| 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 // This is currently used only on Linux and that returns the height for | 360 // This is currently used only on Linux and that returns the height for |
| 361 // optional elements like bookmark bar, download bar etc. Not applicable to | 361 // optional elements like bookmark bar, download bar etc. Not applicable to |
| 362 // panels. | 362 // panels. |
| 363 return 0; | 363 return 0; |
| 364 } | 364 } |
| 365 | 365 |
| 366 void PanelBrowserWindow::WebContentsFocused(WebContents* contents) { | 366 void PanelBrowserWindow::WebContentsFocused(WebContents* contents) { |
| 367 native_panel_->PanelWebContentsFocused(contents); | 367 native_panel_->PanelWebContentsFocused(contents); |
| 368 } | 368 } |
| 369 | 369 |
| 370 void PanelBrowserWindow::ShowPageInfo(Profile* profile, | 370 void PanelBrowserWindow::ShowPageInfo(WebContents* web_contents, |
| 371 const GURL& url, | 371 const GURL& url, |
| 372 const SSLStatus& ssl, | 372 const SSLStatus& ssl, |
| 373 bool show_history) { | 373 bool show_history) { |
| 374 NOTIMPLEMENTED(); | 374 NOTIMPLEMENTED(); |
| 375 } | 375 } |
| 376 void PanelBrowserWindow::ShowWebsiteSettings( | 376 void PanelBrowserWindow::ShowWebsiteSettings( |
| 377 Profile* profile, | 377 Profile* profile, |
| 378 TabContents* tab_contents, | 378 TabContents* tab_contents, |
| 379 const GURL& url, | 379 const GURL& url, |
| 380 const content::SSLStatus& ssl, | 380 const content::SSLStatus& ssl, |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 } | 493 } |
| 494 | 494 |
| 495 void PanelBrowserWindow::TabInsertedAt(TabContents* contents, | 495 void PanelBrowserWindow::TabInsertedAt(TabContents* contents, |
| 496 int index, | 496 int index, |
| 497 bool foreground) { | 497 bool foreground) { |
| 498 if (panel_->auto_resizable()) { | 498 if (panel_->auto_resizable()) { |
| 499 DCHECK_EQ(0, index); | 499 DCHECK_EQ(0, index); |
| 500 panel_->EnableWebContentsAutoResize(contents->web_contents()); | 500 panel_->EnableWebContentsAutoResize(contents->web_contents()); |
| 501 } | 501 } |
| 502 } | 502 } |
| OLD | NEW |