| 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 // during which extensions will avoid closing a window. | 385 // during which extensions will avoid closing a window. |
| 386 bool Panel::IsTabStripEditable() const { | 386 bool Panel::IsTabStripEditable() const { |
| 387 return true; | 387 return true; |
| 388 } | 388 } |
| 389 | 389 |
| 390 bool Panel::IsToolbarVisible() const { | 390 bool Panel::IsToolbarVisible() const { |
| 391 NOTIMPLEMENTED(); | 391 NOTIMPLEMENTED(); |
| 392 return false; | 392 return false; |
| 393 } | 393 } |
| 394 | 394 |
| 395 gfx::Rect Panel::GetRootWindowResizerRect() const { |
| 396 return gfx::Rect(); |
| 397 } |
| 398 |
| 395 bool Panel::IsPanel() const { | 399 bool Panel::IsPanel() const { |
| 396 return true; | 400 return true; |
| 397 } | 401 } |
| 398 | 402 |
| 399 void Panel::DisableInactiveFrame() { | 403 void Panel::DisableInactiveFrame() { |
| 400 NOTIMPLEMENTED(); | 404 NOTIMPLEMENTED(); |
| 401 } | 405 } |
| 402 | 406 |
| 403 void Panel::ConfirmSetDefaultSearchProvider(WebContents* web_contents, | 407 void Panel::ConfirmSetDefaultSearchProvider(WebContents* web_contents, |
| 404 TemplateURL* template_url, | 408 TemplateURL* template_url, |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 645 native_panel_->ContentSizeFromWindowSize(max_size_)); | 649 native_panel_->ContentSizeFromWindowSize(max_size_)); |
| 646 } | 650 } |
| 647 | 651 |
| 648 void Panel::OnWindowSizeAvailable() { | 652 void Panel::OnWindowSizeAvailable() { |
| 649 ConfigureAutoResize(browser()->GetSelectedWebContents()); | 653 ConfigureAutoResize(browser()->GetSelectedWebContents()); |
| 650 } | 654 } |
| 651 | 655 |
| 652 void Panel::DestroyBrowser() { | 656 void Panel::DestroyBrowser() { |
| 653 native_panel_->DestroyPanelBrowser(); | 657 native_panel_->DestroyPanelBrowser(); |
| 654 } | 658 } |
| OLD | NEW |