Chromium Code Reviews| 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 NOTIMPLEMENTED(); | |
|
jennb
2012/01/20 20:17:04
No need for NOTIMPLEMENTED. Panels don't need to d
| |
| 397 return gfx::Rect(); | |
| 398 } | |
| 399 | |
| 395 bool Panel::IsPanel() const { | 400 bool Panel::IsPanel() const { |
| 396 return true; | 401 return true; |
| 397 } | 402 } |
| 398 | 403 |
| 399 void Panel::DisableInactiveFrame() { | 404 void Panel::DisableInactiveFrame() { |
| 400 NOTIMPLEMENTED(); | 405 NOTIMPLEMENTED(); |
| 401 } | 406 } |
| 402 | 407 |
| 403 void Panel::ConfirmSetDefaultSearchProvider(WebContents* web_contents, | 408 void Panel::ConfirmSetDefaultSearchProvider(WebContents* web_contents, |
| 404 TemplateURL* template_url, | 409 TemplateURL* template_url, |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 645 native_panel_->ContentSizeFromWindowSize(max_size_)); | 650 native_panel_->ContentSizeFromWindowSize(max_size_)); |
| 646 } | 651 } |
| 647 | 652 |
| 648 void Panel::OnWindowSizeAvailable() { | 653 void Panel::OnWindowSizeAvailable() { |
| 649 ConfigureAutoResize(browser()->GetSelectedWebContents()); | 654 ConfigureAutoResize(browser()->GetSelectedWebContents()); |
| 650 } | 655 } |
| 651 | 656 |
| 652 void Panel::DestroyBrowser() { | 657 void Panel::DestroyBrowser() { |
| 653 native_panel_->DestroyPanelBrowser(); | 658 native_panel_->DestroyPanelBrowser(); |
| 654 } | 659 } |
| OLD | NEW |