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

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

Issue 690263003: <webview>: Remove broken captureVisibleRegion code until feature is properly supported (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ 5 #ifndef EXTENSIONS_BROWSER_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_
6 #define EXTENSIONS_BROWSER_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ 6 #define EXTENSIONS_BROWSER_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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 bool ShouldInsertCSS() const override; 109 bool ShouldInsertCSS() const override;
110 110
111 DECLARE_EXTENSION_FUNCTION("webViewInternal.insertCSS", 111 DECLARE_EXTENSION_FUNCTION("webViewInternal.insertCSS",
112 WEBVIEWINTERNAL_INSERTCSS) 112 WEBVIEWINTERNAL_INSERTCSS)
113 113
114 private: 114 private:
115 DISALLOW_COPY_AND_ASSIGN(WebViewInternalInsertCSSFunction); 115 DISALLOW_COPY_AND_ASSIGN(WebViewInternalInsertCSSFunction);
116 }; 116 };
117 117
118 class WebViewInternalCaptureVisibleRegionFunction
119 : public extensions::CaptureWebContentsFunction {
120 DECLARE_EXTENSION_FUNCTION("webViewInternal.captureVisibleRegion",
121 WEBVIEWINTERNAL_CAPTUREVISIBLEREGION);
122
123 WebViewInternalCaptureVisibleRegionFunction();
124
125 protected:
126 ~WebViewInternalCaptureVisibleRegionFunction() override;
127
128 private:
129 // extensions::CaptureWebContentsFunction implementation.
130 bool IsScreenshotEnabled() override;
131 content::WebContents* GetWebContentsForID(int id) override;
132 void OnCaptureFailure(FailureReason reason) override;
133
134 DISALLOW_COPY_AND_ASSIGN(WebViewInternalCaptureVisibleRegionFunction);
135 };
136
137 class WebViewInternalSetNameFunction : public WebViewInternalExtensionFunction { 118 class WebViewInternalSetNameFunction : public WebViewInternalExtensionFunction {
138 public: 119 public:
139 DECLARE_EXTENSION_FUNCTION("webViewInternal.setName", 120 DECLARE_EXTENSION_FUNCTION("webViewInternal.setName",
140 WEBVIEWINTERNAL_SETNAME); 121 WEBVIEWINTERNAL_SETNAME);
141 122
142 WebViewInternalSetNameFunction(); 123 WebViewInternalSetNameFunction();
143 124
144 protected: 125 protected:
145 ~WebViewInternalSetNameFunction() override; 126 ~WebViewInternalSetNameFunction() override;
146 127
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 uint32 remove_mask_; 360 uint32 remove_mask_;
380 // Tracks any data related or parse errors. 361 // Tracks any data related or parse errors.
381 bool bad_message_; 362 bool bad_message_;
382 363
383 DISALLOW_COPY_AND_ASSIGN(WebViewInternalClearDataFunction); 364 DISALLOW_COPY_AND_ASSIGN(WebViewInternalClearDataFunction);
384 }; 365 };
385 366
386 } // namespace extensions 367 } // namespace extensions
387 368
388 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ 369 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_
OLDNEW
« no previous file with comments | « content/renderer/child_frame_compositing_helper.cc ('k') | extensions/browser/api/web_view/web_view_internal_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698