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/base_panel_browser_test.h" | 5 #include "chrome/browser/ui/panels/base_panel_browser_test.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 class MockDisplaySettingsProviderImpl : | 58 class MockDisplaySettingsProviderImpl : |
59 public BasePanelBrowserTest::MockDisplaySettingsProvider { | 59 public BasePanelBrowserTest::MockDisplaySettingsProvider { |
60 public: | 60 public: |
61 explicit MockDisplaySettingsProviderImpl(); | 61 explicit MockDisplaySettingsProviderImpl(); |
62 virtual ~MockDisplaySettingsProviderImpl() { } | 62 virtual ~MockDisplaySettingsProviderImpl() { } |
63 | 63 |
64 // Overridden from DisplaySettingsProvider: | 64 // Overridden from DisplaySettingsProvider: |
65 virtual gfx::Rect GetPrimaryDisplayArea() const OVERRIDE; | 65 virtual gfx::Rect GetPrimaryDisplayArea() const OVERRIDE; |
66 virtual gfx::Rect GetPrimaryWorkArea() const OVERRIDE; | 66 virtual gfx::Rect GetPrimaryWorkArea() const OVERRIDE; |
67 virtual gfx::Rect GetDisplayAreaMatching(const gfx::Rect& bounds) const; | 67 virtual gfx::Rect GetDisplayAreaMatching( |
68 virtual gfx::Rect GetWorkAreaMatching(const gfx::Rect& bounds) const; | 68 const gfx::Rect& bounds) const OVERRIDE; |
| 69 virtual gfx::Rect GetWorkAreaMatching( |
| 70 const gfx::Rect& bounds) const OVERRIDE; |
69 virtual bool IsAutoHidingDesktopBarEnabled( | 71 virtual bool IsAutoHidingDesktopBarEnabled( |
70 DesktopBarAlignment alignment) OVERRIDE; | 72 DesktopBarAlignment alignment) OVERRIDE; |
71 virtual int GetDesktopBarThickness( | 73 virtual int GetDesktopBarThickness( |
72 DesktopBarAlignment alignment) const OVERRIDE; | 74 DesktopBarAlignment alignment) const OVERRIDE; |
73 virtual DesktopBarVisibility GetDesktopBarVisibility( | 75 virtual DesktopBarVisibility GetDesktopBarVisibility( |
74 DesktopBarAlignment alignment) const OVERRIDE; | 76 DesktopBarAlignment alignment) const OVERRIDE; |
75 | 77 |
76 // Overridden from MockDisplaySettingsProvider: | 78 // Overridden from MockDisplaySettingsProvider: |
77 virtual void SetPrimaryDisplay( | 79 virtual void SetPrimaryDisplay( |
78 const gfx::Rect& display_area, const gfx::Rect& work_area) OVERRIDE; | 80 const gfx::Rect& display_area, const gfx::Rect& work_area) OVERRIDE; |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 } | 512 } |
511 | 513 |
512 void BasePanelBrowserTest::MoveMouse(const gfx::Point& position) { | 514 void BasePanelBrowserTest::MoveMouse(const gfx::Point& position) { |
513 PanelManager::GetInstance()->mouse_watcher()->NotifyMouseMovement(position); | 515 PanelManager::GetInstance()->mouse_watcher()->NotifyMouseMovement(position); |
514 } | 516 } |
515 | 517 |
516 std::string BasePanelBrowserTest::MakePanelName(int index) { | 518 std::string BasePanelBrowserTest::MakePanelName(int index) { |
517 std::string panel_name("Panel"); | 519 std::string panel_name("Panel"); |
518 return panel_name + base::IntToString(index); | 520 return panel_name + base::IntToString(index); |
519 } | 521 } |
OLD | NEW |