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 "base/i18n/time_formatting.h" | 5 #include "base/i18n/time_formatting.h" |
6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
7 #include "chrome/browser/extensions/extension_service.h" | 7 #include "chrome/browser/extensions/extension_service.h" |
8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/ui/browser_window.h" | 9 #include "chrome/browser/ui/browser_window.h" |
10 #include "chrome/browser/ui/panels/base_panel_browser_test.h" | 10 #include "chrome/browser/ui/panels/base_panel_browser_test.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 return is_cursor_in_view_; | 43 return is_cursor_in_view_; |
44 } | 44 } |
45 | 45 |
46 void MoveMouse(bool is_cursor_in_view) { | 46 void MoveMouse(bool is_cursor_in_view) { |
47 is_cursor_in_view_ = is_cursor_in_view; | 47 is_cursor_in_view_ = is_cursor_in_view; |
48 | 48 |
49 #if defined(OS_WIN) | 49 #if defined(OS_WIN) |
50 MSG msg; | 50 MSG msg; |
51 msg.message = WM_MOUSEMOVE; | 51 msg.message = WM_MOUSEMOVE; |
52 DidProcessEvent(msg); | 52 DidProcessEvent(msg); |
53 #elif defined(TOUCH_UI) || defined(USE_AURA) | 53 #elif defined(USE_AURA) |
54 NOTIMPLEMENTED(); | 54 NOTIMPLEMENTED(); |
55 #elif defined(TOOLKIT_USES_GTK) | 55 #elif defined(TOOLKIT_USES_GTK) |
56 GdkEvent event; | 56 GdkEvent event; |
57 event.type = GDK_MOTION_NOTIFY; | 57 event.type = GDK_MOTION_NOTIFY; |
58 DidProcessEvent(&event); | 58 DidProcessEvent(&event); |
59 #endif | 59 #endif |
60 } | 60 } |
61 | 61 |
62 private: | 62 private: |
63 bool is_cursor_in_view_; | 63 bool is_cursor_in_view_; |
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 // TODO(jianli): Investigate why this fails on win trunk build. | 608 // TODO(jianli): Investigate why this fails on win trunk build. |
609 // http://crbug.com/102734 | 609 // http://crbug.com/102734 |
610 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, DISABLED_DrawAttention) { | 610 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, DISABLED_DrawAttention) { |
611 TestDrawAttention(); | 611 TestDrawAttention(); |
612 } | 612 } |
613 | 613 |
614 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, ChangeAutoHideTaskBarThickness) { | 614 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, ChangeAutoHideTaskBarThickness) { |
615 TestChangeAutoHideTaskBarThickness(); | 615 TestChangeAutoHideTaskBarThickness(); |
616 } | 616 } |
617 #endif | 617 #endif |
OLD | NEW |