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

Side by Side Diff: chrome/browser/extensions/api/web_view/web_view_internal_api.h

Issue 545973002: Cleaning up capture_web_contents_function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_
7 7
8 #include "extensions/browser/api/capture_web_contents_function.h" 8 #include "extensions/browser/api/capture_web_contents_function.h"
9 #include "extensions/browser/api/execute_code_function.h" 9 #include "extensions/browser/api/execute_code_function.h"
10 #include "extensions/browser/extension_function.h" 10 #include "extensions/browser/extension_function.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 virtual bool ShouldInsertCSS() const OVERRIDE; 207 virtual bool ShouldInsertCSS() const OVERRIDE;
208 208
209 DECLARE_EXTENSION_FUNCTION("webViewInternal.insertCSS", 209 DECLARE_EXTENSION_FUNCTION("webViewInternal.insertCSS",
210 WEBVIEWINTERNAL_INSERTCSS) 210 WEBVIEWINTERNAL_INSERTCSS)
211 211
212 private: 212 private:
213 DISALLOW_COPY_AND_ASSIGN(WebViewInternalInsertCSSFunction); 213 DISALLOW_COPY_AND_ASSIGN(WebViewInternalInsertCSSFunction);
214 }; 214 };
215 215
216 class WebViewInternalCaptureVisibleRegionFunction 216 class WebViewInternalCaptureVisibleRegionFunction
217 : public extensions::CaptureWebContentsFunction<AsyncExtensionFunction> { 217 : public extensions::CaptureWebContentsFunction {
218 DECLARE_EXTENSION_FUNCTION("webViewInternal.captureVisibleRegion", 218 DECLARE_EXTENSION_FUNCTION("webViewInternal.captureVisibleRegion",
219 WEBVIEWINTERNAL_CAPTUREVISIBLEREGION); 219 WEBVIEWINTERNAL_CAPTUREVISIBLEREGION);
220 220
221 WebViewInternalCaptureVisibleRegionFunction(); 221 WebViewInternalCaptureVisibleRegionFunction();
222 222
223 protected: 223 protected:
224 virtual ~WebViewInternalCaptureVisibleRegionFunction(); 224 virtual ~WebViewInternalCaptureVisibleRegionFunction();
225 225
226 private: 226 private:
227 // extensions::CaptureWebContentsFunction implementation. 227 // extensions::CaptureWebContentsFunction implementation.
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 private: 433 private:
434 // WebViewInternalExtensionFunction implementation. 434 // WebViewInternalExtensionFunction implementation.
435 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE; 435 virtual bool RunAsyncSafe(WebViewGuest* guest) OVERRIDE;
436 436
437 DISALLOW_COPY_AND_ASSIGN(WebViewInternalTerminateFunction); 437 DISALLOW_COPY_AND_ASSIGN(WebViewInternalTerminateFunction);
438 }; 438 };
439 439
440 } // namespace extensions 440 } // namespace extensions
441 441
442 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ 442 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698