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 "chrome/browser/ui/browser_list.h" | 7 #include "chrome/browser/ui/browser_list.h" |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "ui/base/x/x11_util.h" | 33 #include "ui/base/x/x11_util.h" |
34 #endif | 34 #endif |
35 | 35 |
36 #if defined(OS_MACOSX) | 36 #if defined(OS_MACOSX) |
37 #include "base/mac/scoped_nsautorelease_pool.h" | 37 #include "base/mac/scoped_nsautorelease_pool.h" |
38 #include "chrome/browser/ui/cocoa/find_bar/find_bar_bridge.h" | 38 #include "chrome/browser/ui/cocoa/find_bar/find_bar_bridge.h" |
39 #include "chrome/browser/ui/cocoa/run_loop_testing.h" | 39 #include "chrome/browser/ui/cocoa/run_loop_testing.h" |
40 #endif | 40 #endif |
41 | 41 |
42 using content::WebContentsTester; | 42 using content::WebContentsTester; |
| 43 using extensions::Extension; |
43 | 44 |
44 namespace { | 45 namespace { |
45 | 46 |
46 const gfx::Rect kTestingPrimaryScreenArea = gfx::Rect(0, 0, 800, 600); | 47 const gfx::Rect kTestingPrimaryScreenArea = gfx::Rect(0, 0, 800, 600); |
47 const gfx::Rect kTestingWorkArea = gfx::Rect(0, 0, 800, 580); | 48 const gfx::Rect kTestingWorkArea = gfx::Rect(0, 0, 800, 580); |
48 | 49 |
49 struct MockDesktopBar { | 50 struct MockDesktopBar { |
50 bool auto_hiding_enabled; | 51 bool auto_hiding_enabled; |
51 DisplaySettingsProvider::DesktopBarVisibility visibility; | 52 DisplaySettingsProvider::DesktopBarVisibility visibility; |
52 int thickness; | 53 int thickness; |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 } | 500 } |
500 | 501 |
501 void BasePanelBrowserTest::MoveMouse(const gfx::Point& position) { | 502 void BasePanelBrowserTest::MoveMouse(const gfx::Point& position) { |
502 PanelManager::GetInstance()->mouse_watcher()->NotifyMouseMovement(position); | 503 PanelManager::GetInstance()->mouse_watcher()->NotifyMouseMovement(position); |
503 } | 504 } |
504 | 505 |
505 std::string BasePanelBrowserTest::MakePanelName(int index) { | 506 std::string BasePanelBrowserTest::MakePanelName(int index) { |
506 std::string panel_name("Panel"); | 507 std::string panel_name("Panel"); |
507 return panel_name + base::IntToString(index); | 508 return panel_name + base::IntToString(index); |
508 } | 509 } |
OLD | NEW |