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

Side by Side Diff: content/plugin/webplugin_delegate_stub.cc

Issue 7082034: Send IME events to windowless plug-ins (Chromium side) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 "content/plugin/webplugin_delegate_stub.h" 5 #include "content/plugin/webplugin_delegate_stub.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "content/common/content_client.h" 10 #include "content/common/content_client.h"
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 delegate_->SetFocus(focused); 244 delegate_->SetFocus(focused);
245 } 245 }
246 246
247 void WebPluginDelegateStub::OnHandleInputEvent( 247 void WebPluginDelegateStub::OnHandleInputEvent(
248 const WebKit::WebInputEvent *event, 248 const WebKit::WebInputEvent *event,
249 bool* handled, 249 bool* handled,
250 WebCursor* cursor) { 250 WebCursor* cursor) {
251 WebCursorInfo cursor_info; 251 WebCursorInfo cursor_info;
252 *handled = delegate_->HandleInputEvent(*event, &cursor_info); 252 *handled = delegate_->HandleInputEvent(*event, &cursor_info);
253 cursor->InitFromCursorInfo(cursor_info); 253 cursor->InitFromCursorInfo(cursor_info);
254 #if defined(OS_WIN)
255 webplugin_->UpdateIMEStatus();
256 #endif
254 } 257 }
255 258
256 void WebPluginDelegateStub::OnPaint(const gfx::Rect& damaged_rect) { 259 void WebPluginDelegateStub::OnPaint(const gfx::Rect& damaged_rect) {
257 webplugin_->Paint(damaged_rect); 260 webplugin_->Paint(damaged_rect);
258 } 261 }
259 262
260 void WebPluginDelegateStub::OnDidPaint() { 263 void WebPluginDelegateStub::OnDidPaint() {
261 webplugin_->DidPaint(); 264 webplugin_->DidPaint();
262 } 265 }
263 266
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 delegate_->CreateSeekableResourceClient(resource_id, range_request_id); 379 delegate_->CreateSeekableResourceClient(resource_id, range_request_id);
377 webplugin_->OnResourceCreated(resource_id, resource_client); 380 webplugin_->OnResourceCreated(resource_id, resource_client);
378 } 381 }
379 382
380 #if defined(OS_MACOSX) 383 #if defined(OS_MACOSX)
381 void WebPluginDelegateStub::OnSetFakeAcceleratedSurfaceWindowHandle( 384 void WebPluginDelegateStub::OnSetFakeAcceleratedSurfaceWindowHandle(
382 gfx::PluginWindowHandle window) { 385 gfx::PluginWindowHandle window) {
383 delegate_->set_windowed_handle(window); 386 delegate_->set_windowed_handle(window);
384 } 387 }
385 #endif 388 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698