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

Side by Side Diff: webkit/glue/plugins/webview_plugin.h

Issue 5841002: Finish deinlining virtual methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert parts of the balloon modifications Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_PLUGINS_WEBVIEW_PLUGIN_H_ 5 #ifndef WEBKIT_GLUE_PLUGINS_WEBVIEW_PLUGIN_H_
6 #define WEBKIT_GLUE_PLUGINS_WEBVIEW_PLUGIN_H_ 6 #define WEBKIT_GLUE_PLUGINS_WEBVIEW_PLUGIN_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 // When loading a plug-in document (i.e. a full page plug-in not embedded in 64 // When loading a plug-in document (i.e. a full page plug-in not embedded in
65 // another page), we save all data that has been received, and replay it with 65 // another page), we save all data that has been received, and replay it with
66 // this method on the actual plug-in. 66 // this method on the actual plug-in.
67 void ReplayReceivedData(WebKit::WebPlugin* plugin); 67 void ReplayReceivedData(WebKit::WebPlugin* plugin);
68 68
69 // WebPlugin methods: 69 // WebPlugin methods:
70 virtual bool initialize(WebKit::WebPluginContainer*); 70 virtual bool initialize(WebKit::WebPluginContainer*);
71 virtual void destroy(); 71 virtual void destroy();
72 72
73 virtual NPObject* scriptableObject() { return NULL; } 73 virtual NPObject* scriptableObject();
74 74
75 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect); 75 virtual void paint(WebKit::WebCanvas* canvas, const WebKit::WebRect& rect);
76 76
77 // Coordinates are relative to the containing window. 77 // Coordinates are relative to the containing window.
78 virtual void updateGeometry( 78 virtual void updateGeometry(
79 const WebKit::WebRect& frame_rect, const WebKit::WebRect& clip_rect, 79 const WebKit::WebRect& frame_rect, const WebKit::WebRect& clip_rect,
80 const WebKit::WebVector<WebKit::WebRect>& cut_out_rects, bool is_visible); 80 const WebKit::WebVector<WebKit::WebRect>& cut_out_rects, bool is_visible);
81 81
82 virtual void updateFocus(bool) { } 82 virtual void updateFocus(bool) { }
83 virtual void updateVisibility(bool) { } 83 virtual void updateVisibility(bool) { }
84 84
85 virtual bool acceptsInputEvents() { return true; } 85 virtual bool acceptsInputEvents();
86 virtual bool handleInputEvent(const WebKit::WebInputEvent& event, 86 virtual bool handleInputEvent(const WebKit::WebInputEvent& event,
87 WebKit::WebCursorInfo& cursor_info); 87 WebKit::WebCursorInfo& cursor_info);
88 88
89 virtual void didReceiveResponse(const WebKit::WebURLResponse& response); 89 virtual void didReceiveResponse(const WebKit::WebURLResponse& response);
90 virtual void didReceiveData(const char* data, int data_length); 90 virtual void didReceiveData(const char* data, int data_length);
91 virtual void didFinishLoading(); 91 virtual void didFinishLoading();
92 virtual void didFailLoading(const WebKit::WebURLError& error); 92 virtual void didFailLoading(const WebKit::WebURLError& error);
93 93
94 // Called in response to WebPluginContainer::loadFrameRequest 94 // Called in response to WebPluginContainer::loadFrameRequest
95 virtual void didFinishLoadingFrameRequest( 95 virtual void didFinishLoadingFrameRequest(
96 const WebKit::WebURL& url, void* notifyData) { } 96 const WebKit::WebURL& url, void* notifyData) { }
97 virtual void didFailLoadingFrameRequest(const WebKit::WebURL& url, 97 virtual void didFailLoadingFrameRequest(const WebKit::WebURL& url,
98 void* notify_data, 98 void* notify_data,
99 const WebKit::WebURLError& error) { } 99 const WebKit::WebURLError& error) { }
100 100
101 // WebViewClient methods: 101 // WebViewClient methods:
102 virtual bool acceptsLoadDrops() { return false; } 102 virtual bool acceptsLoadDrops();
103 103
104 virtual void setToolTipText(const WebKit::WebString&, 104 virtual void setToolTipText(const WebKit::WebString&,
105 WebKit::WebTextDirection); 105 WebKit::WebTextDirection);
106 106
107 virtual void startDragging(const WebKit::WebDragData& drag_data, 107 virtual void startDragging(const WebKit::WebDragData& drag_data,
108 WebKit::WebDragOperationsMask mask, 108 WebKit::WebDragOperationsMask mask,
109 const WebKit::WebImage& image, 109 const WebKit::WebImage& image,
110 const WebKit::WebPoint& point); 110 const WebKit::WebPoint& point);
111 111
112 // WebWidgetClient methods: 112 // WebWidgetClient methods:
(...skipping 20 matching lines...) Expand all
133 gfx::Rect rect_; 133 gfx::Rect rect_;
134 134
135 WebKit::WebURLResponse response_; 135 WebKit::WebURLResponse response_;
136 std::list<std::string> data_; 136 std::list<std::string> data_;
137 bool finished_loading_; 137 bool finished_loading_;
138 scoped_ptr<WebKit::WebURLError> error_; 138 scoped_ptr<WebKit::WebURLError> error_;
139 WebKit::WebString old_title_; 139 WebKit::WebString old_title_;
140 }; 140 };
141 141
142 #endif // WEBKIT_GLUE_PLUGINS_WEBVIEW_PLUGIN_H_ 142 #endif // WEBKIT_GLUE_PLUGINS_WEBVIEW_PLUGIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698