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

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: Merge trunk. 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 webkit::ppapi::PluginInstance* plugin); 299 webkit::ppapi::PluginInstance* plugin);
300 300
301 // Create a new plugin without checking the content settings. 301 // Create a new plugin without checking the content settings.
302 CONTENT_EXPORT WebKit::WebPlugin* CreatePluginNoCheck( 302 CONTENT_EXPORT WebKit::WebPlugin* CreatePluginNoCheck(
303 WebKit::WebFrame* frame, 303 WebKit::WebFrame* frame,
304 const WebKit::WebPluginParams& params); 304 const WebKit::WebPluginParams& params);
305 305
306 // Informs the render view that a PPAPI plugin has gained or lost focus. 306 // Informs the render view that a PPAPI plugin has gained or lost focus.
307 void PpapiPluginFocusChanged(); 307 void PpapiPluginFocusChanged();
308 308
309 // Informs the render view that a PPAPI plugin has changed text input status.
310 void PpapiPluginTextInputTypeChanged();
311
312 // Cancels current composition.
313 void PpapiPluginCancelComposition();
314
309 // Request updated policy regarding firewall NAT traversal being enabled. 315 // Request updated policy regarding firewall NAT traversal being enabled.
310 void RequestRemoteAccessClientFirewallTraversal(); 316 void RequestRemoteAccessClientFirewallTraversal();
311 317
312 #if defined(OS_MACOSX) || defined(OS_WIN) 318 #if defined(OS_MACOSX) || defined(OS_WIN)
313 // Informs the render view that the given plugin has gained or lost focus. 319 // Informs the render view that the given plugin has gained or lost focus.
314 void PluginFocusChanged(bool focused, int plugin_id); 320 void PluginFocusChanged(bool focused, int plugin_id);
315 #endif 321 #endif
316 322
317 #if defined(OS_MACOSX) 323 #if defined(OS_MACOSX)
318 // Starts plugin IME. 324 // Starts plugin IME.
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 virtual void OnWasHidden(); 660 virtual void OnWasHidden();
655 virtual void OnWasRestored(bool needs_repainting); 661 virtual void OnWasRestored(bool needs_repainting);
656 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE; 662 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE;
657 virtual void OnImeSetComposition( 663 virtual void OnImeSetComposition(
658 const string16& text, 664 const string16& text,
659 const std::vector<WebKit::WebCompositionUnderline>& underlines, 665 const std::vector<WebKit::WebCompositionUnderline>& underlines,
660 int selection_start, 666 int selection_start,
661 int selection_end) OVERRIDE; 667 int selection_end) OVERRIDE;
662 virtual void OnImeConfirmComposition(const string16& text) OVERRIDE; 668 virtual void OnImeConfirmComposition(const string16& text) OVERRIDE;
663 virtual ui::TextInputType GetTextInputType() OVERRIDE; 669 virtual ui::TextInputType GetTextInputType() OVERRIDE;
670 virtual gfx::Rect GetCaretBounds() OVERRIDE;
664 virtual bool CanComposeInline() OVERRIDE; 671 virtual bool CanComposeInline() OVERRIDE;
665 672
666 private: 673 private:
667 // For unit tests. 674 // For unit tests.
668 friend class ExternalPopupMenuTest; 675 friend class ExternalPopupMenuTest;
669 friend class PepperDeviceTest; 676 friend class PepperDeviceTest;
670 friend class RenderViewTest; 677 friend class RenderViewTest;
671 678
672 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); 679 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange);
673 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase); 680 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuTest, NormalCase);
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 // bunch of stuff, you should probably create a helper class and put your 1238 // bunch of stuff, you should probably create a helper class and put your
1232 // data and methods on that to avoid bloating RenderView more. You can use 1239 // data and methods on that to avoid bloating RenderView more. You can use
1233 // the Observer interface to filter IPC messages and receive frame change 1240 // the Observer interface to filter IPC messages and receive frame change
1234 // notifications. 1241 // notifications.
1235 // --------------------------------------------------------------------------- 1242 // ---------------------------------------------------------------------------
1236 1243
1237 DISALLOW_COPY_AND_ASSIGN(RenderView); 1244 DISALLOW_COPY_AND_ASSIGN(RenderView);
1238 }; 1245 };
1239 1246
1240 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ 1247 #endif // CONTENT_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698