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

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

Issue 8587009: Add OVERRIDE to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 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 | « content/renderer/text_input_client_observer.h ('k') | content/renderer/websharedworker_proxy.h » ('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) 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_WEBPLUGIN_DELEGATE_PROXY_H_ 5 #ifndef CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_
6 #define CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ 6 #define CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 class WebPluginDelegateProxy 52 class WebPluginDelegateProxy
53 : public webkit::npapi::WebPluginDelegate, 53 : public webkit::npapi::WebPluginDelegate,
54 public IPC::Channel::Listener, 54 public IPC::Channel::Listener,
55 public IPC::Message::Sender, 55 public IPC::Message::Sender,
56 public base::SupportsWeakPtr<WebPluginDelegateProxy> { 56 public base::SupportsWeakPtr<WebPluginDelegateProxy> {
57 public: 57 public:
58 WebPluginDelegateProxy(const std::string& mime_type, 58 WebPluginDelegateProxy(const std::string& mime_type,
59 const base::WeakPtr<RenderViewImpl>& render_view); 59 const base::WeakPtr<RenderViewImpl>& render_view);
60 60
61 // WebPluginDelegate implementation: 61 // WebPluginDelegate implementation:
62 virtual void PluginDestroyed(); 62 virtual void PluginDestroyed() OVERRIDE;
63 virtual bool Initialize(const GURL& url, 63 virtual bool Initialize(const GURL& url,
64 const std::vector<std::string>& arg_names, 64 const std::vector<std::string>& arg_names,
65 const std::vector<std::string>& arg_values, 65 const std::vector<std::string>& arg_values,
66 webkit::npapi::WebPlugin* plugin, 66 webkit::npapi::WebPlugin* plugin,
67 bool load_manually); 67 bool load_manually) OVERRIDE;
68 virtual void UpdateGeometry(const gfx::Rect& window_rect, 68 virtual void UpdateGeometry(const gfx::Rect& window_rect,
69 const gfx::Rect& clip_rect); 69 const gfx::Rect& clip_rect) OVERRIDE;
70 virtual void Paint(WebKit::WebCanvas* canvas, const gfx::Rect& rect); 70 virtual void Paint(WebKit::WebCanvas* canvas, const gfx::Rect& rect) OVERRIDE;
71 virtual NPObject* GetPluginScriptableObject(); 71 virtual NPObject* GetPluginScriptableObject() OVERRIDE;
72 virtual bool GetFormValue(string16* value); 72 virtual bool GetFormValue(string16* value) OVERRIDE;
73 virtual void DidFinishLoadWithReason(const GURL& url, NPReason reason, 73 virtual void DidFinishLoadWithReason(const GURL& url, NPReason reason,
74 int notify_id); 74 int notify_id) OVERRIDE;
75 virtual void SetFocus(bool focused); 75 virtual void SetFocus(bool focused) OVERRIDE;
76 virtual bool HandleInputEvent(const WebKit::WebInputEvent& event, 76 virtual bool HandleInputEvent(const WebKit::WebInputEvent& event,
77 WebKit::WebCursorInfo* cursor); 77 WebKit::WebCursorInfo* cursor) OVERRIDE;
78 virtual int GetProcessId(); 78 virtual int GetProcessId() OVERRIDE;
79 79
80 // Informs the plugin that its containing content view has gained or lost 80 // Informs the plugin that its containing content view has gained or lost
81 // first responder status. 81 // first responder status.
82 virtual void SetContentAreaFocus(bool has_focus); 82 virtual void SetContentAreaFocus(bool has_focus);
83 #if defined(OS_WIN) 83 #if defined(OS_WIN)
84 // Informs the plugin that plugin IME has updated its status. 84 // Informs the plugin that plugin IME has updated its status.
85 virtual void ImeCompositionUpdated( 85 virtual void ImeCompositionUpdated(
86 const string16& text, 86 const string16& text,
87 const std::vector<int>& clauses, 87 const std::vector<int>& clauses,
88 const std::vector<int>& target, 88 const std::vector<int>& target,
89 int cursor_position, 89 int cursor_position,
90 int plugin_id); 90 int plugin_id);
91 // Informs the plugin that plugin IME has completed. 91 // Informs the plugin that plugin IME has completed.
92 // If |text| is empty, composition was cancelled. 92 // If |text| is empty, composition was cancelled.
93 virtual void ImeCompositionCompleted(const string16& text, int plugin_id); 93 virtual void ImeCompositionCompleted(const string16& text, int plugin_id);
94 #endif 94 #endif
95 #if defined(OS_MACOSX) 95 #if defined(OS_MACOSX)
96 // Informs the plugin that its enclosing window has gained or lost focus. 96 // Informs the plugin that its enclosing window has gained or lost focus.
97 virtual void SetWindowFocus(bool window_has_focus); 97 virtual void SetWindowFocus(bool window_has_focus);
98 // Informs the plugin that its container (window/tab) has changed visibility. 98 // Informs the plugin that its container (window/tab) has changed visibility.
99 virtual void SetContainerVisibility(bool is_visible); 99 virtual void SetContainerVisibility(bool is_visible);
100 // Informs the plugin that its enclosing window's frame has changed. 100 // Informs the plugin that its enclosing window's frame has changed.
101 virtual void WindowFrameChanged(gfx::Rect window_frame, gfx::Rect view_frame); 101 virtual void WindowFrameChanged(gfx::Rect window_frame, gfx::Rect view_frame);
102 // Informs the plugin that plugin IME has completed. 102 // Informs the plugin that plugin IME has completed.
103 // If |text| is empty, composition was cancelled. 103 // If |text| is empty, composition was cancelled.
104 virtual void ImeCompositionCompleted(const string16& text, int plugin_id); 104 virtual void ImeCompositionCompleted(const string16& text, int plugin_id);
105 #endif 105 #endif
106 106
107 // IPC::Channel::Listener implementation: 107 // IPC::Channel::Listener implementation:
108 virtual bool OnMessageReceived(const IPC::Message& msg); 108 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
109 virtual void OnChannelError(); 109 virtual void OnChannelError() OVERRIDE;
110 110
111 // IPC::Message::Sender implementation: 111 // IPC::Message::Sender implementation:
112 virtual bool Send(IPC::Message* msg); 112 virtual bool Send(IPC::Message* msg) OVERRIDE;
113 113
114 virtual void SendJavaScriptStream(const GURL& url, 114 virtual void SendJavaScriptStream(const GURL& url,
115 const std::string& result, 115 const std::string& result,
116 bool success, 116 bool success,
117 int notify_id); 117 int notify_id) OVERRIDE;
118 118
119 virtual void DidReceiveManualResponse(const GURL& url, 119 virtual void DidReceiveManualResponse(const GURL& url,
120 const std::string& mime_type, 120 const std::string& mime_type,
121 const std::string& headers, 121 const std::string& headers,
122 uint32 expected_length, 122 uint32 expected_length,
123 uint32 last_modified); 123 uint32 last_modified) OVERRIDE;
124 virtual void DidReceiveManualData(const char* buffer, int length); 124 virtual void DidReceiveManualData(const char* buffer, int length) OVERRIDE;
125 virtual void DidFinishManualLoading(); 125 virtual void DidFinishManualLoading() OVERRIDE;
126 virtual void DidManualLoadFail(); 126 virtual void DidManualLoadFail() OVERRIDE;
127 virtual webkit::npapi::WebPluginResourceClient* CreateResourceClient( 127 virtual webkit::npapi::WebPluginResourceClient* CreateResourceClient(
128 unsigned long resource_id, const GURL& url, int notify_id); 128 unsigned long resource_id, const GURL& url, int notify_id) OVERRIDE;
129 virtual webkit::npapi::WebPluginResourceClient* CreateSeekableResourceClient( 129 virtual webkit::npapi::WebPluginResourceClient* CreateSeekableResourceClient(
130 unsigned long resource_id, int range_request_id); 130 unsigned long resource_id, int range_request_id) OVERRIDE;
131 131
132 gfx::PluginWindowHandle GetPluginWindowHandle(); 132 gfx::PluginWindowHandle GetPluginWindowHandle();
133 133
134 protected: 134 protected:
135 template<class WebPluginDelegateProxy> friend class DeleteTask; 135 template<class WebPluginDelegateProxy> friend class DeleteTask;
136 virtual ~WebPluginDelegateProxy(); 136 virtual ~WebPluginDelegateProxy();
137 137
138 private: 138 private:
139 struct SharedBitmap { 139 struct SharedBitmap {
140 SharedBitmap(); 140 SharedBitmap();
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 // back-buffer. 311 // back-buffer.
312 gfx::Rect front_buffer_diff_; 312 gfx::Rect front_buffer_diff_;
313 313
314 // The url of the main frame hosting the plugin. 314 // The url of the main frame hosting the plugin.
315 GURL page_url_; 315 GURL page_url_;
316 316
317 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); 317 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy);
318 }; 318 };
319 319
320 #endif // CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ 320 #endif // CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_
OLDNEW
« no previous file with comments | « content/renderer/text_input_client_observer.h ('k') | content/renderer/websharedworker_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698