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

Side by Side Diff: content/renderer/render_view.h

Issue 8073021: Implement Pepper IME API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated comments from brettw, yzshen, and kochi. Created 9 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
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 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 webkit::ppapi::PluginInstance* plugin); 300 webkit::ppapi::PluginInstance* plugin);
301 301
302 // Create a new plugin without checking the content settings. 302 // Create a new plugin without checking the content settings.
303 CONTENT_EXPORT WebKit::WebPlugin* CreatePluginNoCheck( 303 CONTENT_EXPORT WebKit::WebPlugin* CreatePluginNoCheck(
304 WebKit::WebFrame* frame, 304 WebKit::WebFrame* frame,
305 const WebKit::WebPluginParams& params); 305 const WebKit::WebPluginParams& params);
306 306
307 // Informs the render view that a PPAPI plugin has gained or lost focus. 307 // Informs the render view that a PPAPI plugin has gained or lost focus.
308 void PpapiPluginFocusChanged(); 308 void PpapiPluginFocusChanged();
309 309
310 // Informs the render view that a PPAPI plugin has changed text input status.
311 void PpapiPluginTextInputTypeChanged();
312
313 // Cancels current composition.
314 void PpapiPluginCancelComposition();
315
310 // Request updated policy regarding firewall NAT traversal being enabled. 316 // Request updated policy regarding firewall NAT traversal being enabled.
311 void RequestRemoteAccessClientFirewallTraversal(); 317 void RequestRemoteAccessClientFirewallTraversal();
312 318
313 #if defined(OS_MACOSX) 319 #if defined(OS_MACOSX)
314 // Informs the render view that the given plugin has gained or lost focus. 320 // Informs the render view that the given plugin has gained or lost focus.
315 void PluginFocusChanged(bool focused, int plugin_id); 321 void PluginFocusChanged(bool focused, int plugin_id);
316 322
317 // Starts plugin IME. 323 // Starts plugin IME.
318 void StartPluginIme(); 324 void StartPluginIme();
319 325
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 virtual void OnWasHidden(); 661 virtual void OnWasHidden();
656 virtual void OnWasRestored(bool needs_repainting); 662 virtual void OnWasRestored(bool needs_repainting);
657 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE; 663 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE;
658 virtual void OnImeSetComposition( 664 virtual void OnImeSetComposition(
659 const string16& text, 665 const string16& text,
660 const std::vector<WebKit::WebCompositionUnderline>& underlines, 666 const std::vector<WebKit::WebCompositionUnderline>& underlines,
661 int selection_start, 667 int selection_start,
662 int selection_end) OVERRIDE; 668 int selection_end) OVERRIDE;
663 virtual void OnImeConfirmComposition(const string16& text) OVERRIDE; 669 virtual void OnImeConfirmComposition(const string16& text) OVERRIDE;
664 virtual ui::TextInputType GetTextInputType() OVERRIDE; 670 virtual ui::TextInputType GetTextInputType() OVERRIDE;
671 virtual gfx::Rect GetCaretBounds() OVERRIDE;
665 virtual bool CanComposeInline() OVERRIDE; 672 virtual bool CanComposeInline() OVERRIDE;
666 673
667 private: 674 private:
668 // For unit tests. 675 // For unit tests.
669 friend class ExternalPopupMenuTest; 676 friend class ExternalPopupMenuTest;
670 friend class PepperDeviceTest; 677 friend class PepperDeviceTest;
671 friend class RenderViewTest; 678 friend class RenderViewTest;
672 679
673 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); 680 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange);
674 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); 681 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase);
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 // bunch of stuff, you should probably create a helper class and put your 1267 // bunch of stuff, you should probably create a helper class and put your
1261 // data and methods on that to avoid bloating RenderView more. You can use 1268 // data and methods on that to avoid bloating RenderView more. You can use
1262 // the Observer interface to filter IPC messages and receive frame change 1269 // the Observer interface to filter IPC messages and receive frame change
1263 // notifications. 1270 // notifications.
1264 // --------------------------------------------------------------------------- 1271 // ---------------------------------------------------------------------------
1265 1272
1266 DISALLOW_COPY_AND_ASSIGN(RenderView); 1273 DISALLOW_COPY_AND_ASSIGN(RenderView);
1267 }; 1274 };
1268 1275
1269 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ 1276 #endif // CONTENT_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698