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

Side by Side Diff: webkit/plugins/ppapi/ppapi_plugin_instance.h

Issue 10083013: Merge 132027 - Make the text input not require round-trips when the text is updated. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1084/src/
Patch Set: Created 8 years, 8 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 | « ppapi/shared_impl/ppb_instance_shared.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/weak_ptr.h"
16 #include "base/string16.h" 17 #include "base/string16.h"
17 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
18 #include "ppapi/c/dev/pp_cursor_type_dev.h" 19 #include "ppapi/c/dev/pp_cursor_type_dev.h"
19 #include "ppapi/c/dev/ppp_printing_dev.h" 20 #include "ppapi/c/dev/ppp_printing_dev.h"
20 #include "ppapi/c/dev/ppp_find_dev.h" 21 #include "ppapi/c/dev/ppp_find_dev.h"
21 #include "ppapi/c/dev/ppp_selection_dev.h" 22 #include "ppapi/c/dev/ppp_selection_dev.h"
22 #include "ppapi/c/dev/ppp_text_input_dev.h" 23 #include "ppapi/c/dev/ppp_text_input_dev.h"
23 #include "ppapi/c/dev/ppp_zoom_dev.h" 24 #include "ppapi/c/dev/ppp_zoom_dev.h"
24 #include "ppapi/c/pp_completion_callback.h" 25 #include "ppapi/c/pp_completion_callback.h"
25 #include "ppapi/c/pp_instance.h" 26 #include "ppapi/c/pp_instance.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 class PPB_ImageData_Impl; 84 class PPB_ImageData_Impl;
84 class PPB_URLLoader_Impl; 85 class PPB_URLLoader_Impl;
85 class PPB_URLRequestInfo_Impl; 86 class PPB_URLRequestInfo_Impl;
86 87
87 // Represents one time a plugin appears on one web page. 88 // Represents one time a plugin appears on one web page.
88 // 89 //
89 // Note: to get from a PP_Instance to a PluginInstance*, use the 90 // Note: to get from a PP_Instance to a PluginInstance*, use the
90 // ResourceTracker. 91 // ResourceTracker.
91 class WEBKIT_PLUGINS_EXPORT PluginInstance : 92 class WEBKIT_PLUGINS_EXPORT PluginInstance :
92 public base::RefCounted<PluginInstance>, 93 public base::RefCounted<PluginInstance>,
94 public base::SupportsWeakPtr<PluginInstance>,
93 public ::ppapi::FunctionGroupBase, 95 public ::ppapi::FunctionGroupBase,
94 public ::ppapi::PPB_Instance_Shared { 96 public ::ppapi::PPB_Instance_Shared {
95 public: 97 public:
96 // Create and return a PluginInstance object which supports the 98 // Create and return a PluginInstance object which supports the
97 // given version. 99 // given version.
98 static PluginInstance* Create1_0(PluginDelegate* delegate, 100 static PluginInstance* Create1_0(PluginDelegate* delegate,
99 PluginModule* module, 101 PluginModule* module,
100 const void* ppp_instance_if_1_0); 102 const void* ppp_instance_if_1_0);
101 static PluginInstance* Create1_1(PluginDelegate* delegate, 103 static PluginInstance* Create1_1(PluginDelegate* delegate,
102 PluginModule* module, 104 PluginModule* module,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 TransportDIB** dib, 221 TransportDIB** dib,
220 gfx::Rect* dib_bounds, 222 gfx::Rect* dib_bounds,
221 gfx::Rect* clip); 223 gfx::Rect* clip);
222 224
223 // Tracks all live PluginObjects. 225 // Tracks all live PluginObjects.
224 void AddPluginObject(PluginObject* plugin_object); 226 void AddPluginObject(PluginObject* plugin_object);
225 void RemovePluginObject(PluginObject* plugin_object); 227 void RemovePluginObject(PluginObject* plugin_object);
226 228
227 string16 GetSelectedText(bool html); 229 string16 GetSelectedText(bool html);
228 string16 GetLinkAtPosition(const gfx::Point& point); 230 string16 GetLinkAtPosition(const gfx::Point& point);
229 bool RequestSurroundingText(size_t desired_number_of_characters); 231 void RequestSurroundingText(size_t desired_number_of_characters);
230 void Zoom(double factor, bool text_only); 232 void Zoom(double factor, bool text_only);
231 bool StartFind(const string16& search_text, 233 bool StartFind(const string16& search_text,
232 bool case_sensitive, 234 bool case_sensitive,
233 int identifier); 235 int identifier);
234 void SelectFindResult(bool forward); 236 void SelectFindResult(bool forward);
235 void StopFind(); 237 void StopFind();
236 238
237 bool SupportsPrintInterface(); 239 bool SupportsPrintInterface();
238 bool IsPrintScalingDisabled(); 240 bool IsPrintScalingDisabled();
239 int PrintBegin(const gfx::Rect& printable_area, int printer_dpi); 241 int PrintBegin(const gfx::Rect& printable_area, int printer_dpi);
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 // a user gesture after it has been processed. 649 // a user gesture after it has been processed.
648 PP_TimeTicks pending_user_gesture_; 650 PP_TimeTicks pending_user_gesture_;
649 651
650 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 652 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
651 }; 653 };
652 654
653 } // namespace ppapi 655 } // namespace ppapi
654 } // namespace webkit 656 } // namespace webkit
655 657
656 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 658 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_instance_shared.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698