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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual bool IsCursorInViewBounds() const { | 42 virtual bool IsCursorInViewBounds() const { |
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 DidProcessMessage(msg); | 52 DidProcessEvent(msg); |
53 #else | 53 #elif defined(TOUCH_UI) || defined(USE_AURA) |
| 54 NOTIMPLEMENTED(); |
| 55 #elif defined(TOOLKIT_USES_GTK) |
54 GdkEvent event; | 56 GdkEvent event; |
55 event.type = GDK_MOTION_NOTIFY; | 57 event.type = GDK_MOTION_NOTIFY; |
56 DidProcessEvent(&event); | 58 DidProcessEvent(&event); |
57 #endif | 59 #endif |
58 } | 60 } |
59 | 61 |
60 private: | 62 private: |
61 bool is_cursor_in_view_; | 63 bool is_cursor_in_view_; |
62 }; | 64 }; |
63 | 65 |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 | 446 |
445 // TODO(jianli): Investigate why this fails on win trunk build. | 447 // TODO(jianli): Investigate why this fails on win trunk build. |
446 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, DISABLED_DrawAttention) { | 448 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, DISABLED_DrawAttention) { |
447 TestDrawAttention(); | 449 TestDrawAttention(); |
448 } | 450 } |
449 | 451 |
450 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, ChangeAutoHideTaskBarThickness) { | 452 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, ChangeAutoHideTaskBarThickness) { |
451 TestChangeAutoHideTaskBarThickness(); | 453 TestChangeAutoHideTaskBarThickness(); |
452 } | 454 } |
453 #endif | 455 #endif |
OLD | NEW |