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

Side by Side Diff: content/test/render_view_test.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
« no previous file with comments | « content/test/render_view_test.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/test/render_view_test.h" 5 #include "content/test/render_view_test.h"
6 6
7 #include "content/common/view_messages.h" 7 #include "content/common/view_messages.h"
8 #include "content/public/browser/native_web_keyboard_event.h" 8 #include "content/public/browser/native_web_keyboard_event.h"
9 #include "content/public/common/renderer_preferences.h" 9 #include "content/public/common/renderer_preferences.h"
10 #include "content/renderer/render_thread_impl.h" 10 #include "content/renderer/render_thread_impl.h"
(...skipping 26 matching lines...) Expand all
37 #include "ui/base/x/x11_util.h" 37 #include "ui/base/x/x11_util.h"
38 #endif 38 #endif
39 39
40 using WebKit::WebFrame; 40 using WebKit::WebFrame;
41 using WebKit::WebInputEvent; 41 using WebKit::WebInputEvent;
42 using WebKit::WebMouseEvent; 42 using WebKit::WebMouseEvent;
43 using WebKit::WebScriptController; 43 using WebKit::WebScriptController;
44 using WebKit::WebScriptSource; 44 using WebKit::WebScriptSource;
45 using WebKit::WebString; 45 using WebKit::WebString;
46 using WebKit::WebURLRequest; 46 using WebKit::WebURLRequest;
47 using content::NativeWebKeyboardEvent;
47 48
48 namespace { 49 namespace {
49 const int32 kOpenerId = -2; 50 const int32 kOpenerId = -2;
50 const int32 kRouteId = 5; 51 const int32 kRouteId = 5;
51 const int32 kNewWindowRouteId = 6; 52 const int32 kNewWindowRouteId = 6;
52 const int32 kSurfaceId = 42; 53 const int32 kSurfaceId = 42;
53 54
54 #if defined(USE_AURA) && defined(USE_X11) 55 #if defined(USE_AURA) && defined(USE_X11)
55 // Converts MockKeyboard::Modifiers to ui::EventFlags. 56 // Converts MockKeyboard::Modifiers to ui::EventFlags.
56 int ConvertMockKeyboardModifier(MockKeyboard::Modifiers modifiers) { 57 int ConvertMockKeyboardModifier(MockKeyboard::Modifiers modifiers) {
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); 458 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
458 impl->set_send_content_state_immediately(true); 459 impl->set_send_content_state_immediately(true);
459 } 460 }
460 461
461 WebKit::WebWidget* RenderViewTest::GetWebWidget() { 462 WebKit::WebWidget* RenderViewTest::GetWebWidget() {
462 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); 463 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
463 return impl->webwidget(); 464 return impl->webwidget();
464 } 465 }
465 466
466 } // namespace content 467 } // namespace content
OLDNEW
« no previous file with comments | « content/test/render_view_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698