| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 const gfx::Rect& bounds) { | 508 const gfx::Rect& bounds) { |
| 509 NOTIMPLEMENTED(); | 509 NOTIMPLEMENTED(); |
| 510 return NEW_POPUP; | 510 return NEW_POPUP; |
| 511 } | 511 } |
| 512 | 512 |
| 513 FindBar* Panel::CreateFindBar() { | 513 FindBar* Panel::CreateFindBar() { |
| 514 return native_panel_->CreatePanelFindBar(); | 514 return native_panel_->CreatePanelFindBar(); |
| 515 } | 515 } |
| 516 | 516 |
| 517 #if defined(OS_CHROMEOS) | 517 #if defined(OS_CHROMEOS) |
| 518 void Panel::ShowMobileSetup() { |
| 519 NOTIMPLEMENTED(); |
| 520 } |
| 521 |
| 518 void Panel::ShowKeyboardOverlay(gfx::NativeWindow owning_window) { | 522 void Panel::ShowKeyboardOverlay(gfx::NativeWindow owning_window) { |
| 519 NOTIMPLEMENTED(); | 523 NOTIMPLEMENTED(); |
| 520 } | 524 } |
| 521 #endif | 525 #endif |
| 522 | 526 |
| 523 void Panel::UpdatePreferredSize(TabContents* tab_contents, | 527 void Panel::UpdatePreferredSize(TabContents* tab_contents, |
| 524 const gfx::Size& pref_size) { | 528 const gfx::Size& pref_size) { |
| 525 return manager()->OnPreferredWindowSizeChanged(this, | 529 return manager()->OnPreferredWindowSizeChanged(this, |
| 526 native_panel_->WindowSizeFromContentSize(pref_size)); | 530 native_panel_->WindowSizeFromContentSize(pref_size)); |
| 527 } | 531 } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 RequestRenderViewHostToDisableScrollbars(GetRenderViewHost()); | 583 RequestRenderViewHostToDisableScrollbars(GetRenderViewHost()); |
| 580 } | 584 } |
| 581 | 585 |
| 582 Browser* Panel::browser() const { | 586 Browser* Panel::browser() const { |
| 583 return native_panel_->GetPanelBrowser(); | 587 return native_panel_->GetPanelBrowser(); |
| 584 } | 588 } |
| 585 | 589 |
| 586 void Panel::DestroyBrowser() { | 590 void Panel::DestroyBrowser() { |
| 587 native_panel_->DestroyPanelBrowser(); | 591 native_panel_->DestroyPanelBrowser(); |
| 588 } | 592 } |
| OLD | NEW |