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/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/path_service.h" | |
12 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
13 #include "chrome/browser/chrome_notification_types.h" | 12 #include "chrome/browser/chrome_notification_types.h" |
14 #include "chrome/browser/extensions/extension_service.h" | 13 #include "chrome/browser/extensions/extension_service.h" |
15 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
17 #include "chrome/browser/ui/browser_window.h" | 16 #include "chrome/browser/ui/browser_window.h" |
18 #include "chrome/browser/ui/panels/detached_panel_collection.h" | 17 #include "chrome/browser/ui/panels/detached_panel_collection.h" |
19 #include "chrome/browser/ui/panels/native_panel.h" | 18 #include "chrome/browser/ui/panels/native_panel.h" |
20 #include "chrome/browser/ui/panels/panel_collection.h" | 19 #include "chrome/browser/ui/panels/panel_collection.h" |
21 #include "chrome/browser/ui/panels/panel_mouse_watcher.h" | 20 #include "chrome/browser/ui/panels/panel_mouse_watcher.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 53 |
55 struct MockDesktopBar { | 54 struct MockDesktopBar { |
56 bool auto_hiding_enabled; | 55 bool auto_hiding_enabled; |
57 DisplaySettingsProvider::DesktopBarVisibility visibility; | 56 DisplaySettingsProvider::DesktopBarVisibility visibility; |
58 int thickness; | 57 int thickness; |
59 }; | 58 }; |
60 | 59 |
61 class MockDisplaySettingsProviderImpl : | 60 class MockDisplaySettingsProviderImpl : |
62 public BasePanelBrowserTest::MockDisplaySettingsProvider { | 61 public BasePanelBrowserTest::MockDisplaySettingsProvider { |
63 public: | 62 public: |
64 explicit MockDisplaySettingsProviderImpl(); | 63 MockDisplaySettingsProviderImpl(); |
65 ~MockDisplaySettingsProviderImpl() override {} | 64 ~MockDisplaySettingsProviderImpl() override {} |
66 | 65 |
67 // Overridden from DisplaySettingsProvider: | 66 // Overridden from DisplaySettingsProvider: |
68 gfx::Rect GetPrimaryDisplayArea() const override; | 67 gfx::Rect GetPrimaryDisplayArea() const override; |
69 gfx::Rect GetPrimaryWorkArea() const override; | 68 gfx::Rect GetPrimaryWorkArea() const override; |
70 gfx::Rect GetDisplayAreaMatching(const gfx::Rect& bounds) const override; | 69 gfx::Rect GetDisplayAreaMatching(const gfx::Rect& bounds) const override; |
71 gfx::Rect GetWorkAreaMatching(const gfx::Rect& bounds) const override; | 70 gfx::Rect GetWorkAreaMatching(const gfx::Rect& bounds) const override; |
72 bool IsAutoHidingDesktopBarEnabled(DesktopBarAlignment alignment) override; | 71 bool IsAutoHidingDesktopBarEnabled(DesktopBarAlignment alignment) override; |
73 int GetDesktopBarThickness(DesktopBarAlignment alignment) const override; | 72 int GetDesktopBarThickness(DesktopBarAlignment alignment) const override; |
74 DesktopBarVisibility GetDesktopBarVisibility( | 73 DesktopBarVisibility GetDesktopBarVisibility( |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 } | 592 } |
594 | 593 |
595 std::string BasePanelBrowserTest::MakePanelName(int index) { | 594 std::string BasePanelBrowserTest::MakePanelName(int index) { |
596 std::string panel_name("Panel"); | 595 std::string panel_name("Panel"); |
597 return panel_name + base::IntToString(index); | 596 return panel_name + base::IntToString(index); |
598 } | 597 } |
599 | 598 |
600 bool BasePanelBrowserTest::WmSupportWindowActivation() { | 599 bool BasePanelBrowserTest::WmSupportWindowActivation() { |
601 return true; | 600 return true; |
602 } | 601 } |
OLD | NEW |