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

Side by Side Diff: webkit/glue/webplugin_impl.h

Issue 8775: This fixes bug http://code.google.com/p/chromium/issues/detail?id=3881, which... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 | « chrome/test/ui/npapi_uitest.cpp ('k') | webkit/glue/webplugin_impl.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_GLUE_WEBPLUGIN_IMPL_H_ 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_
6 #define WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ 6 #define WEBKIT_GLUE_WEBPLUGIN_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 NPObject* GetPluginScriptableObject(); 57 NPObject* GetPluginScriptableObject();
58 58
59 // Widget methods: 59 // Widget methods:
60 virtual void setFrameRect(const WebCore::IntRect& rect); 60 virtual void setFrameRect(const WebCore::IntRect& rect);
61 virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect& rect); 61 virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect& rect);
62 virtual void invalidateRect(const WebCore::IntRect&); 62 virtual void invalidateRect(const WebCore::IntRect&);
63 virtual void setFocus(); 63 virtual void setFocus();
64 virtual void show(); 64 virtual void show();
65 virtual void hide(); 65 virtual void hide();
66 virtual void handleEvent(WebCore::Event* event); 66 virtual void handleEvent(WebCore::Event* event);
67 virtual void frameRectsChanged() const {} 67 virtual void frameRectsChanged() const;
68 virtual void setParentVisible(bool visible);
68 69
69 #if USE(JSC) 70 #if USE(JSC)
70 virtual bool isPluginView() const; 71 virtual bool isPluginView() const;
71 #endif 72 #endif
72 73
73 // Returns window-relative rectangles that should clip this widget. 74 // Returns window-relative rectangles that should clip this widget.
74 // Only rects that intersect the given bounds are relevant. 75 // Only rects that intersect the given bounds are relevant.
75 // Use this to implement iframe shim behavior. 76 // Use this to implement iframe shim behavior.
76 // 77 //
77 // TODO(tulrich): add this method to WebCore/platform/Widget.h so it 78 // TODO(tulrich): add this method to WebCore/platform/Widget.h so it
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 184
184 void ShowModalHTMLDialog(const GURL& url, int width, int height, 185 void ShowModalHTMLDialog(const GURL& url, int width, int height,
185 const std::string& json_arguments, 186 const std::string& json_arguments,
186 std::string* json_retval); 187 std::string* json_retval);
187 void OnMissingPluginStatus(int status); 188 void OnMissingPluginStatus(int status);
188 void Invalidate(); 189 void Invalidate();
189 void InvalidateRect(const gfx::Rect& rect); 190 void InvalidateRect(const gfx::Rect& rect);
190 191
191 // Widget implementation: 192 // Widget implementation:
192 virtual WebCore::IntRect windowClipRect() const; 193 virtual WebCore::IntRect windowClipRect() const;
193 virtual void geometryChanged() const;
194 194
195 // Returns window-relative rectangles that should clip this widget. 195 // Returns window-relative rectangles that should clip this widget.
196 // Only rects that intersect the given bounds are relevant. 196 // Only rects that intersect the given bounds are relevant.
197 // Use this to implement iframe shim behavior. 197 // Use this to implement iframe shim behavior.
198 // 198 //
199 // TODO(tulrich): windowCutoutRects() is not in WebCore::Widgets 199 // TODO(tulrich): windowCutoutRects() is not in WebCore::Widgets
200 // yet; need to add it. 200 // yet; need to add it.
201 void windowCutoutRects(const WebCore::IntRect& bounds, 201 void windowCutoutRects(const WebCore::IntRect& bounds,
202 WTF::Vector<WebCore::IntRect>* rects) const; 202 WTF::Vector<WebCore::IntRect>* rects) const;
203 203
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 // Indicates if the download would be initiated by the plugin or us. 322 // Indicates if the download would be initiated by the plugin or us.
323 bool load_manually_; 323 bool load_manually_;
324 324
325 // Indicates if this is the first geometry update received by the plugin. 325 // Indicates if this is the first geometry update received by the plugin.
326 bool first_geometry_update_; 326 bool first_geometry_update_;
327 327
328 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); 328 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl);
329 }; 329 };
330 330
331 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ 331 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/test/ui/npapi_uitest.cpp ('k') | webkit/glue/webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698