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

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_guest.h

Issue 622343002: replace OVERRIDE and FINAL with override and final in extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Sets the transparency of the guest. 77 // Sets the transparency of the guest.
78 void SetAllowTransparency(bool allow); 78 void SetAllowTransparency(bool allow);
79 79
80 // Loads a data URL with a specified base URL and virtual URL. 80 // Loads a data URL with a specified base URL and virtual URL.
81 bool LoadDataWithBaseURL(const std::string& data_url, 81 bool LoadDataWithBaseURL(const std::string& data_url,
82 const std::string& base_url, 82 const std::string& base_url,
83 const std::string& virtual_url, 83 const std::string& virtual_url,
84 std::string* error); 84 std::string* error);
85 85
86 // GuestViewBase implementation. 86 // GuestViewBase implementation.
87 virtual const char* GetAPINamespace() const OVERRIDE; 87 virtual const char* GetAPINamespace() const override;
88 virtual int GetTaskPrefix() const OVERRIDE; 88 virtual int GetTaskPrefix() const override;
89 virtual void CreateWebContents( 89 virtual void CreateWebContents(
90 const std::string& embedder_extension_id, 90 const std::string& embedder_extension_id,
91 int embedder_render_process_id, 91 int embedder_render_process_id,
92 const GURL& embedder_site_url, 92 const GURL& embedder_site_url,
93 const base::DictionaryValue& create_params, 93 const base::DictionaryValue& create_params,
94 const WebContentsCreatedCallback& callback) OVERRIDE; 94 const WebContentsCreatedCallback& callback) override;
95 virtual void DidAttachToEmbedder() OVERRIDE; 95 virtual void DidAttachToEmbedder() override;
96 virtual void DidInitialize() OVERRIDE; 96 virtual void DidInitialize() override;
97 virtual void DidStopLoading() OVERRIDE; 97 virtual void DidStopLoading() override;
98 virtual void EmbedderDestroyed() OVERRIDE; 98 virtual void EmbedderDestroyed() override;
99 virtual void GuestDestroyed() OVERRIDE; 99 virtual void GuestDestroyed() override;
100 virtual void GuestReady() OVERRIDE; 100 virtual void GuestReady() override;
101 virtual void GuestSizeChangedDueToAutoSize( 101 virtual void GuestSizeChangedDueToAutoSize(
102 const gfx::Size& old_size, 102 const gfx::Size& old_size,
103 const gfx::Size& new_size) OVERRIDE; 103 const gfx::Size& new_size) override;
104 virtual bool IsAutoSizeSupported() const OVERRIDE; 104 virtual bool IsAutoSizeSupported() const override;
105 virtual bool IsDragAndDropEnabled() const OVERRIDE; 105 virtual bool IsDragAndDropEnabled() const override;
106 virtual void WillAttachToEmbedder() OVERRIDE; 106 virtual void WillAttachToEmbedder() override;
107 virtual void WillDestroy() OVERRIDE; 107 virtual void WillDestroy() override;
108 108
109 // WebContentsDelegate implementation. 109 // WebContentsDelegate implementation.
110 virtual bool AddMessageToConsole(content::WebContents* source, 110 virtual bool AddMessageToConsole(content::WebContents* source,
111 int32 level, 111 int32 level,
112 const base::string16& message, 112 const base::string16& message,
113 int32 line_no, 113 int32 line_no,
114 const base::string16& source_id) OVERRIDE; 114 const base::string16& source_id) override;
115 virtual void LoadProgressChanged(content::WebContents* source, 115 virtual void LoadProgressChanged(content::WebContents* source,
116 double progress) OVERRIDE; 116 double progress) override;
117 virtual void CloseContents(content::WebContents* source) OVERRIDE; 117 virtual void CloseContents(content::WebContents* source) override;
118 virtual void FindReply(content::WebContents* source, 118 virtual void FindReply(content::WebContents* source,
119 int request_id, 119 int request_id,
120 int number_of_matches, 120 int number_of_matches,
121 const gfx::Rect& selection_rect, 121 const gfx::Rect& selection_rect,
122 int active_match_ordinal, 122 int active_match_ordinal,
123 bool final_update) OVERRIDE; 123 bool final_update) override;
124 virtual bool HandleContextMenu( 124 virtual bool HandleContextMenu(
125 const content::ContextMenuParams& params) OVERRIDE; 125 const content::ContextMenuParams& params) override;
126 virtual void HandleKeyboardEvent( 126 virtual void HandleKeyboardEvent(
127 content::WebContents* source, 127 content::WebContents* source,
128 const content::NativeWebKeyboardEvent& event) OVERRIDE; 128 const content::NativeWebKeyboardEvent& event) override;
129 virtual void RendererResponsive(content::WebContents* source) OVERRIDE; 129 virtual void RendererResponsive(content::WebContents* source) override;
130 virtual void RendererUnresponsive(content::WebContents* source) OVERRIDE; 130 virtual void RendererUnresponsive(content::WebContents* source) override;
131 virtual void RequestMediaAccessPermission( 131 virtual void RequestMediaAccessPermission(
132 content::WebContents* source, 132 content::WebContents* source,
133 const content::MediaStreamRequest& request, 133 const content::MediaStreamRequest& request,
134 const content::MediaResponseCallback& callback) OVERRIDE; 134 const content::MediaResponseCallback& callback) override;
135 virtual bool CheckMediaAccessPermission( 135 virtual bool CheckMediaAccessPermission(
136 content::WebContents* source, 136 content::WebContents* source,
137 const GURL& security_origin, 137 const GURL& security_origin,
138 content::MediaStreamType type) OVERRIDE; 138 content::MediaStreamType type) override;
139 virtual void CanDownload(content::RenderViewHost* render_view_host, 139 virtual void CanDownload(content::RenderViewHost* render_view_host,
140 const GURL& url, 140 const GURL& url,
141 const std::string& request_method, 141 const std::string& request_method,
142 const base::Callback<void(bool)>& callback) OVERRIDE; 142 const base::Callback<void(bool)>& callback) override;
143 virtual content::JavaScriptDialogManager* 143 virtual content::JavaScriptDialogManager*
144 GetJavaScriptDialogManager() OVERRIDE; 144 GetJavaScriptDialogManager() override;
145 virtual content::ColorChooser* OpenColorChooser( 145 virtual content::ColorChooser* OpenColorChooser(
146 content::WebContents* web_contents, 146 content::WebContents* web_contents,
147 SkColor color, 147 SkColor color,
148 const std::vector<content::ColorSuggestion>& suggestions) OVERRIDE; 148 const std::vector<content::ColorSuggestion>& suggestions) override;
149 virtual void AddNewContents(content::WebContents* source, 149 virtual void AddNewContents(content::WebContents* source,
150 content::WebContents* new_contents, 150 content::WebContents* new_contents,
151 WindowOpenDisposition disposition, 151 WindowOpenDisposition disposition,
152 const gfx::Rect& initial_pos, 152 const gfx::Rect& initial_pos,
153 bool user_gesture, 153 bool user_gesture,
154 bool* was_blocked) OVERRIDE; 154 bool* was_blocked) override;
155 virtual content::WebContents* OpenURLFromTab( 155 virtual content::WebContents* OpenURLFromTab(
156 content::WebContents* source, 156 content::WebContents* source,
157 const content::OpenURLParams& params) OVERRIDE; 157 const content::OpenURLParams& params) override;
158 virtual void WebContentsCreated(content::WebContents* source_contents, 158 virtual void WebContentsCreated(content::WebContents* source_contents,
159 int opener_render_frame_id, 159 int opener_render_frame_id,
160 const base::string16& frame_name, 160 const base::string16& frame_name,
161 const GURL& target_url, 161 const GURL& target_url,
162 content::WebContents* new_contents) OVERRIDE; 162 content::WebContents* new_contents) override;
163 163
164 // BrowserPluginGuestDelegate implementation. 164 // BrowserPluginGuestDelegate implementation.
165 virtual content::WebContents* CreateNewGuestWindow( 165 virtual content::WebContents* CreateNewGuestWindow(
166 const content::WebContents::CreateParams& create_params) OVERRIDE; 166 const content::WebContents::CreateParams& create_params) override;
167 virtual void RequestPointerLockPermission( 167 virtual void RequestPointerLockPermission(
168 bool user_gesture, 168 bool user_gesture,
169 bool last_unlocked_by_target, 169 bool last_unlocked_by_target,
170 const base::Callback<void(bool)>& callback) OVERRIDE; 170 const base::Callback<void(bool)>& callback) override;
171 // NotificationObserver implementation. 171 // NotificationObserver implementation.
172 virtual void Observe(int type, 172 virtual void Observe(int type,
173 const content::NotificationSource& source, 173 const content::NotificationSource& source,
174 const content::NotificationDetails& details) OVERRIDE; 174 const content::NotificationDetails& details) override;
175 175
176 // Returns the current zoom factor. 176 // Returns the current zoom factor.
177 double GetZoom(); 177 double GetZoom();
178 178
179 // Begin or continue a find request. 179 // Begin or continue a find request.
180 void Find(const base::string16& search_text, 180 void Find(const base::string16& search_text,
181 const blink::WebFindOptions& options, 181 const blink::WebFindOptions& options,
182 scoped_refptr<WebViewInternalFindFunction> find_function); 182 scoped_refptr<WebViewInternalFindFunction> find_function);
183 183
184 // Conclude a find request to clear highlighting. 184 // Conclude a find request to clear highlighting.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 void AttachWebViewHelpers(content::WebContents* contents); 249 void AttachWebViewHelpers(content::WebContents* contents);
250 250
251 void OnWebViewNewWindowResponse(int new_window_instance_id, 251 void OnWebViewNewWindowResponse(int new_window_instance_id,
252 bool allow, 252 bool allow,
253 const std::string& user_input); 253 const std::string& user_input);
254 254
255 // WebContentsObserver implementation. 255 // WebContentsObserver implementation.
256 virtual void DidCommitProvisionalLoadForFrame( 256 virtual void DidCommitProvisionalLoadForFrame(
257 content::RenderFrameHost* render_frame_host, 257 content::RenderFrameHost* render_frame_host,
258 const GURL& url, 258 const GURL& url,
259 ui::PageTransition transition_type) OVERRIDE; 259 ui::PageTransition transition_type) override;
260 virtual void DidFailProvisionalLoad( 260 virtual void DidFailProvisionalLoad(
261 content::RenderFrameHost* render_frame_host, 261 content::RenderFrameHost* render_frame_host,
262 const GURL& validated_url, 262 const GURL& validated_url,
263 int error_code, 263 int error_code,
264 const base::string16& error_description) OVERRIDE; 264 const base::string16& error_description) override;
265 virtual void DidStartProvisionalLoadForFrame( 265 virtual void DidStartProvisionalLoadForFrame(
266 content::RenderFrameHost* render_frame_host, 266 content::RenderFrameHost* render_frame_host,
267 const GURL& validated_url, 267 const GURL& validated_url,
268 bool is_error_page, 268 bool is_error_page,
269 bool is_iframe_srcdoc) OVERRIDE; 269 bool is_iframe_srcdoc) override;
270 virtual void DocumentLoadedInFrame( 270 virtual void DocumentLoadedInFrame(
271 content::RenderFrameHost* render_frame_host) OVERRIDE; 271 content::RenderFrameHost* render_frame_host) override;
272 virtual bool OnMessageReceived( 272 virtual bool OnMessageReceived(
273 const IPC::Message& message, 273 const IPC::Message& message,
274 content::RenderFrameHost* render_frame_host) OVERRIDE; 274 content::RenderFrameHost* render_frame_host) override;
275 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; 275 virtual void RenderProcessGone(base::TerminationStatus status) override;
276 virtual void UserAgentOverrideSet(const std::string& user_agent) OVERRIDE; 276 virtual void UserAgentOverrideSet(const std::string& user_agent) override;
277 277
278 // Informs the embedder of a frame name change. 278 // Informs the embedder of a frame name change.
279 void ReportFrameNameChange(const std::string& name); 279 void ReportFrameNameChange(const std::string& name);
280 280
281 // Called after the load handler is called in the guest's main frame. 281 // Called after the load handler is called in the guest's main frame.
282 void LoadHandlerCalled(); 282 void LoadHandlerCalled();
283 283
284 // Called when a redirect notification occurs. 284 // Called when a redirect notification occurs.
285 void LoadRedirect(const GURL& old_url, 285 void LoadRedirect(const GURL& old_url,
286 const GURL& new_url, 286 const GURL& new_url,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 368
369 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; 369 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap;
370 PendingWindowMap pending_new_windows_; 370 PendingWindowMap pending_new_windows_;
371 371
372 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); 372 DISALLOW_COPY_AND_ASSIGN(WebViewGuest);
373 }; 373 };
374 374
375 } // namespace extensions 375 } // namespace extensions
376 376
377 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 377 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698