| 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.h" | 5 #include "chrome/browser/ui/panels/panel.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/extensions/extension_prefs.h" | 8 #include "chrome/browser/extensions/extension_prefs.h" |
| 9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 void Panel::WebContentsFocused(WebContents* contents) { | 508 void Panel::WebContentsFocused(WebContents* contents) { |
| 509 native_panel_->PanelWebContentsFocused(contents); | 509 native_panel_->PanelWebContentsFocused(contents); |
| 510 } | 510 } |
| 511 | 511 |
| 512 void Panel::ShowPageInfo(Profile* profile, | 512 void Panel::ShowPageInfo(Profile* profile, |
| 513 const GURL& url, | 513 const GURL& url, |
| 514 const SSLStatus& ssl, | 514 const SSLStatus& ssl, |
| 515 bool show_history) { | 515 bool show_history) { |
| 516 NOTIMPLEMENTED(); | 516 NOTIMPLEMENTED(); |
| 517 } | 517 } |
| 518 void Panel::ShowWebsiteSettings(Profile* profile, |
| 519 TabContentsWrapper* tab_contents_wrapper, |
| 520 const GURL& url, |
| 521 const content::SSLStatus& ssl, |
| 522 bool show_history) { |
| 523 NOTIMPLEMENTED(); |
| 524 } |
| 518 | 525 |
| 519 void Panel::ShowAppMenu() { | 526 void Panel::ShowAppMenu() { |
| 520 NOTIMPLEMENTED(); | 527 NOTIMPLEMENTED(); |
| 521 } | 528 } |
| 522 | 529 |
| 523 bool Panel::PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 530 bool Panel::PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
| 524 bool* is_keyboard_shortcut) { | 531 bool* is_keyboard_shortcut) { |
| 525 return native_panel_->PreHandlePanelKeyboardEvent(event, | 532 return native_panel_->PreHandlePanelKeyboardEvent(event, |
| 526 is_keyboard_shortcut); | 533 is_keyboard_shortcut); |
| 527 } | 534 } |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 native_panel_->ContentSizeFromWindowSize(max_size_)); | 678 native_panel_->ContentSizeFromWindowSize(max_size_)); |
| 672 } | 679 } |
| 673 | 680 |
| 674 void Panel::OnWindowSizeAvailable() { | 681 void Panel::OnWindowSizeAvailable() { |
| 675 ConfigureAutoResize(browser()->GetSelectedWebContents()); | 682 ConfigureAutoResize(browser()->GetSelectedWebContents()); |
| 676 } | 683 } |
| 677 | 684 |
| 678 void Panel::DestroyBrowser() { | 685 void Panel::DestroyBrowser() { |
| 679 native_panel_->DestroyPanelBrowser(); | 686 native_panel_->DestroyPanelBrowser(); |
| 680 } | 687 } |
| OLD | NEW |