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

Side by Side Diff: chrome/browser/extensions/api/webview/webview_api.h

Issue 291483010: <webview>: Move name attribute to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@newwindow_refactor
Patch Set: Addressed John's comments Created 6 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/webview/webview_api.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_
7 7
8 #include "chrome/browser/extensions/api/capture_web_contents_function.h" 8 #include "chrome/browser/extensions/api/capture_web_contents_function.h"
9 #include "chrome/browser/extensions/api/execute_code_function.h" 9 #include "chrome/browser/extensions/api/execute_code_function.h"
10 #include "chrome/browser/guest_view/web_view/web_view_find_helper.h" 10 #include "chrome/browser/guest_view/web_view/web_view_find_helper.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 private: 198 private:
199 // extensions::CaptureWebContentsFunction implementation. 199 // extensions::CaptureWebContentsFunction implementation.
200 virtual bool IsScreenshotEnabled() OVERRIDE; 200 virtual bool IsScreenshotEnabled() OVERRIDE;
201 virtual content::WebContents* GetWebContentsForID(int id) OVERRIDE; 201 virtual content::WebContents* GetWebContentsForID(int id) OVERRIDE;
202 virtual void OnCaptureFailure(FailureReason reason) OVERRIDE; 202 virtual void OnCaptureFailure(FailureReason reason) OVERRIDE;
203 203
204 DISALLOW_COPY_AND_ASSIGN(WebviewCaptureVisibleRegionFunction); 204 DISALLOW_COPY_AND_ASSIGN(WebviewCaptureVisibleRegionFunction);
205 }; 205 };
206 206
207 class WebviewSetNameFunction : public WebviewExtensionFunction {
208 public:
209 DECLARE_EXTENSION_FUNCTION("webview.setName", WEBVIEW_SETNAME);
210
211 WebviewSetNameFunction();
212
213 protected:
214 virtual ~WebviewSetNameFunction();
215
216 private:
217 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
218
219 DISALLOW_COPY_AND_ASSIGN(WebviewSetNameFunction);
220 };
221
207 class WebviewSetZoomFunction : public WebviewExtensionFunction { 222 class WebviewSetZoomFunction : public WebviewExtensionFunction {
208 public: 223 public:
209 DECLARE_EXTENSION_FUNCTION("webview.setZoom", WEBVIEW_SETZOOM); 224 DECLARE_EXTENSION_FUNCTION("webview.setZoom", WEBVIEW_SETZOOM);
210 225
211 WebviewSetZoomFunction(); 226 WebviewSetZoomFunction();
212 227
213 protected: 228 protected:
214 virtual ~WebviewSetZoomFunction(); 229 virtual ~WebviewSetZoomFunction();
215 230
216 private: 231 private:
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 private: 394 private:
380 // WebviewExtensionFunction implementation. 395 // WebviewExtensionFunction implementation.
381 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE; 396 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
382 397
383 DISALLOW_COPY_AND_ASSIGN(WebviewTerminateFunction); 398 DISALLOW_COPY_AND_ASSIGN(WebviewTerminateFunction);
384 }; 399 };
385 400
386 } // namespace extensions 401 } // namespace extensions
387 402
388 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_ 403 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBVIEW_WEBVIEW_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/webview/webview_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698