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_browser_window_gtk.h" | 5 #include "chrome/browser/ui/panels/panel_browser_window_gtk.h" |
6 | 6 |
7 #include "chrome/browser/ui/panels/panel.h" | 7 #include "chrome/browser/ui/panels/panel.h" |
8 #include "chrome/browser/ui/panels/panel_manager.h" | 8 #include "chrome/browser/ui/panels/panel_manager.h" |
9 #include "chrome/browser/ui/panels/panel_settings_menu_model.h" | 9 #include "chrome/browser/ui/panels/panel_settings_menu_model.h" |
10 #include "chrome/common/chrome_notification_types.h" | 10 #include "chrome/common/chrome_notification_types.h" |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 PanelBrowserWindowGtk* panel_browser_window_gtk); | 534 PanelBrowserWindowGtk* panel_browser_window_gtk); |
535 | 535 |
536 private: | 536 private: |
537 virtual void PressLeftMouseButtonTitlebar( | 537 virtual void PressLeftMouseButtonTitlebar( |
538 const gfx::Point& point) OVERRIDE; | 538 const gfx::Point& point) OVERRIDE; |
539 virtual void ReleaseMouseButtonTitlebar() OVERRIDE; | 539 virtual void ReleaseMouseButtonTitlebar() OVERRIDE; |
540 virtual void DragTitlebar(int delta_x, int delta_y) OVERRIDE; | 540 virtual void DragTitlebar(int delta_x, int delta_y) OVERRIDE; |
541 virtual void CancelDragTitlebar() OVERRIDE; | 541 virtual void CancelDragTitlebar() OVERRIDE; |
542 virtual void FinishDragTitlebar() OVERRIDE; | 542 virtual void FinishDragTitlebar() OVERRIDE; |
543 virtual bool VerifyDrawingAttention() const OVERRIDE; | 543 virtual bool VerifyDrawingAttention() const OVERRIDE; |
| 544 virtual bool VerifyTitlebarPaintedAsActive(bool as_active) OVERRIDE; |
544 | 545 |
545 PanelBrowserWindowGtk* panel_browser_window_gtk_; | 546 PanelBrowserWindowGtk* panel_browser_window_gtk_; |
546 }; | 547 }; |
547 | 548 |
548 // static | 549 // static |
549 NativePanelTesting* NativePanelTesting::Create(NativePanel* native_panel) { | 550 NativePanelTesting* NativePanelTesting::Create(NativePanel* native_panel) { |
550 return new NativePanelTestingGtk(static_cast<PanelBrowserWindowGtk*>( | 551 return new NativePanelTestingGtk(static_cast<PanelBrowserWindowGtk*>( |
551 native_panel)); | 552 native_panel)); |
552 } | 553 } |
553 | 554 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 } | 610 } |
610 | 611 |
611 bool NativePanelTestingGtk::VerifyDrawingAttention() const { | 612 bool NativePanelTestingGtk::VerifyDrawingAttention() const { |
612 std::string title; | 613 std::string title; |
613 BrowserWindowGtk::TitleDecoration decoration = | 614 BrowserWindowGtk::TitleDecoration decoration = |
614 panel_browser_window_gtk_->GetWindowTitle(&title); | 615 panel_browser_window_gtk_->GetWindowTitle(&title); |
615 return panel_browser_window_gtk_->IsDrawingAttention() && | 616 return panel_browser_window_gtk_->IsDrawingAttention() && |
616 decoration == BrowserWindowGtk::PANGO_MARKUP; | 617 decoration == BrowserWindowGtk::PANGO_MARKUP; |
617 } | 618 } |
618 | 619 |
| 620 bool NativePanelTestingGtk::VerifyTitlebarPaintedAsActive(bool as_active) { |
| 621 // TODO(jianli): to be implemented. |
| 622 return false; |
| 623 } |
OLD | NEW |