Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Side by Side Diff: chrome/browser/ui/panels/panel_browser_view_browsertest.cc

Issue 8021009: Consolidate message observer API for win and aura (and touch). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 460
459 // TODO(jianli): Investigate why this fails on win trunk build. 461 // TODO(jianli): Investigate why this fails on win trunk build.
460 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, DISABLED_DrawAttention) { 462 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, DISABLED_DrawAttention) {
461 TestDrawAttention(); 463 TestDrawAttention();
462 } 464 }
463 465
464 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, ChangeAutoHideTaskBarThickness) { 466 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, ChangeAutoHideTaskBarThickness) {
465 TestChangeAutoHideTaskBarThickness(); 467 TestChangeAutoHideTaskBarThickness();
466 } 468 }
467 #endif 469 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698