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

Side by Side Diff: content/browser/renderer_host/render_widget_host_unittest.cc

Issue 10383239: Move NativeWebKeyboardEvent to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 7 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) 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/shared_memory.h" 7 #include "base/shared_memory.h"
8 #include "base/timer.h" 8 #include "base/timer.h"
9 #include "content/browser/browser_thread_impl.h" 9 #include "content/browser/browser_thread_impl.h"
10 #include "content/browser/renderer_host/backing_store.h" 10 #include "content/browser/renderer_host/backing_store.h"
(...skipping 13 matching lines...) Expand all
24 #include "ui/gfx/canvas.h" 24 #include "ui/gfx/canvas.h"
25 25
26 #if defined(USE_AURA) 26 #if defined(USE_AURA)
27 #include "content/browser/renderer_host/render_widget_host_view_aura.h" 27 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
28 #endif 28 #endif
29 29
30 using base::TimeDelta; 30 using base::TimeDelta;
31 using content::BrowserThread; 31 using content::BrowserThread;
32 using content::BrowserThreadImpl; 32 using content::BrowserThreadImpl;
33 using content::MockRenderProcessHost; 33 using content::MockRenderProcessHost;
34 using content::NativeWebKeyboardEvent;
34 using content::RenderWidgetHost; 35 using content::RenderWidgetHost;
35 using content::RenderWidgetHostImpl; 36 using content::RenderWidgetHostImpl;
36 using WebKit::WebInputEvent; 37 using WebKit::WebInputEvent;
37 using WebKit::WebMouseWheelEvent; 38 using WebKit::WebMouseWheelEvent;
38 39
39 namespace gfx { 40 namespace gfx {
40 class Size; 41 class Size;
41 } 42 }
42 43
43 // RenderWidgetHostProcess ----------------------------------------------------- 44 // RenderWidgetHostProcess -----------------------------------------------------
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 SimulateKeyboardEvent(WebInputEvent::RawKeyDown); 816 SimulateKeyboardEvent(WebInputEvent::RawKeyDown);
816 SimulateKeyboardEvent(WebInputEvent::RawKeyDown); 817 SimulateKeyboardEvent(WebInputEvent::RawKeyDown);
817 SendInputEventACK(WebInputEvent::RawKeyDown, true); 818 SendInputEventACK(WebInputEvent::RawKeyDown, true);
818 819
819 // Wait long enough for first timeout and see if it fired. 820 // Wait long enough for first timeout and see if it fired.
820 MessageLoop::current()->PostDelayedTask( 821 MessageLoop::current()->PostDelayedTask(
821 FROM_HERE, MessageLoop::QuitClosure(), TimeDelta::FromMilliseconds(40)); 822 FROM_HERE, MessageLoop::QuitClosure(), TimeDelta::FromMilliseconds(40));
822 MessageLoop::current()->Run(); 823 MessageLoop::current()->Run();
823 EXPECT_TRUE(host_->unresponsive_timer_fired()); 824 EXPECT_TRUE(host_->unresponsive_timer_fired());
824 } 825 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698