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

Side by Side Diff: chrome/browser/renderer_host/test/test_render_view_host.cc

Issue 3782012: Merge 62820 - Implement IME for Mac plugins using the Cocoa event model on 10... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/552/src/
Patch Set: Created 10 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
« no previous file with comments | « chrome/browser/renderer_host/test/test_render_view_host.h ('k') | chrome/chrome_browser.gypi » ('j') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/test/test_render_view_host.h" 5 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
6 6
7 #include "chrome/browser/browser_url_handler.h" 7 #include "chrome/browser/browser_url_handler.h"
8 #include "chrome/browser/renderer_host/site_instance.h" 8 #include "chrome/browser/renderer_host/site_instance.h"
9 #include "chrome/browser/renderer_host/test/test_backing_store.h" 9 #include "chrome/browser/renderer_host/test/test_backing_store.h"
10 #include "chrome/browser/tab_contents/navigation_controller.h" 10 #include "chrome/browser/tab_contents/navigation_controller.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 } 136 }
137 137
138 gfx::Rect TestRenderWidgetHostView::GetRootWindowRect() { 138 gfx::Rect TestRenderWidgetHostView::GetRootWindowRect() {
139 return gfx::Rect(); 139 return gfx::Rect();
140 } 140 }
141 141
142 void TestRenderWidgetHostView::SetActive(bool active) { 142 void TestRenderWidgetHostView::SetActive(bool active) {
143 // <viettrungluu@gmail.com>: Do I need to do anything here? 143 // <viettrungluu@gmail.com>: Do I need to do anything here?
144 } 144 }
145 145
146 void TestRenderWidgetHostView::SetPluginImeEnabled(bool enabled,
147 int plugin_id) {
148 }
149
150 bool TestRenderWidgetHostView::PostProcessEventForPluginIme(
151 const NativeWebKeyboardEvent& event) {
152 return false;
153 }
154
146 gfx::PluginWindowHandle 155 gfx::PluginWindowHandle
147 TestRenderWidgetHostView::AllocateFakePluginWindowHandle( 156 TestRenderWidgetHostView::AllocateFakePluginWindowHandle(
148 bool opaque, 157 bool opaque,
149 bool root) { 158 bool root) {
150 return NULL; 159 return NULL;
151 } 160 }
152 161
153 void TestRenderWidgetHostView::DestroyFakePluginWindowHandle( 162 void TestRenderWidgetHostView::DestroyFakePluginWindowHandle(
154 gfx::PluginWindowHandle window) { 163 gfx::PluginWindowHandle window) {
155 } 164 }
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 contents_.reset(); 284 contents_.reset();
276 285
277 // Make sure that we flush any messages related to TabContents destruction 286 // Make sure that we flush any messages related to TabContents destruction
278 // before we destroy the profile. 287 // before we destroy the profile.
279 MessageLoop::current()->RunAllPending(); 288 MessageLoop::current()->RunAllPending();
280 289
281 // Release the profile on the UI thread. 290 // Release the profile on the UI thread.
282 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); 291 message_loop_.DeleteSoon(FROM_HERE, profile_.release());
283 message_loop_.RunAllPending(); 292 message_loop_.RunAllPending();
284 } 293 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/test/test_render_view_host.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698