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

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

Issue 6259013: Update Mac plugin IME handling to match updated spec (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to trunk Created 9 years, 11 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) 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, 146 void TestRenderWidgetHostView::PluginFocusChanged(bool focused,
147 int plugin_id) { 147 int plugin_id) {
148 }
149
150 void TestRenderWidgetHostView::StartPluginIme() {
148 } 151 }
149 152
150 bool TestRenderWidgetHostView::PostProcessEventForPluginIme( 153 bool TestRenderWidgetHostView::PostProcessEventForPluginIme(
151 const NativeWebKeyboardEvent& event) { 154 const NativeWebKeyboardEvent& event) {
152 return false; 155 return false;
153 } 156 }
154 157
155 gfx::PluginWindowHandle 158 gfx::PluginWindowHandle
156 TestRenderWidgetHostView::AllocateFakePluginWindowHandle( 159 TestRenderWidgetHostView::AllocateFakePluginWindowHandle(
157 bool opaque, 160 bool opaque,
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 contents_.reset(); 301 contents_.reset();
299 302
300 // Make sure that we flush any messages related to TabContents destruction 303 // Make sure that we flush any messages related to TabContents destruction
301 // before we destroy the profile. 304 // before we destroy the profile.
302 MessageLoop::current()->RunAllPending(); 305 MessageLoop::current()->RunAllPending();
303 306
304 // Release the profile on the UI thread. 307 // Release the profile on the UI thread.
305 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); 308 message_loop_.DeleteSoon(FROM_HERE, profile_.release());
306 message_loop_.RunAllPending(); 309 message_loop_.RunAllPending();
307 } 310 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/test/test_render_view_host.h ('k') | chrome/common/plugin_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698