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

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

Issue 916363003: Enable pinch-zoom on the new login page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase for enum conflict. Created 5 years, 10 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_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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 protected: 142 protected:
143 ~WebViewInternalSetAllowTransparencyFunction() override; 143 ~WebViewInternalSetAllowTransparencyFunction() override;
144 144
145 private: 145 private:
146 bool RunAsyncSafe(WebViewGuest* guest) override; 146 bool RunAsyncSafe(WebViewGuest* guest) override;
147 147
148 DISALLOW_COPY_AND_ASSIGN(WebViewInternalSetAllowTransparencyFunction); 148 DISALLOW_COPY_AND_ASSIGN(WebViewInternalSetAllowTransparencyFunction);
149 }; 149 };
150 150
151 class WebViewInternalSetAllowScalingFunction
152 : public WebViewInternalExtensionFunction {
153 public:
154 DECLARE_EXTENSION_FUNCTION("webViewInternal.setAllowScaling",
155 WEBVIEWINTERNAL_SETALLOWSCALING);
156
157 WebViewInternalSetAllowScalingFunction();
158
159 protected:
160 ~WebViewInternalSetAllowScalingFunction() override;
161
162 private:
163 bool RunAsyncSafe(WebViewGuest* guest) override;
164
165 DISALLOW_COPY_AND_ASSIGN(WebViewInternalSetAllowScalingFunction);
166 };
167
151 class WebViewInternalSetZoomFunction : public WebViewInternalExtensionFunction { 168 class WebViewInternalSetZoomFunction : public WebViewInternalExtensionFunction {
152 public: 169 public:
153 DECLARE_EXTENSION_FUNCTION("webViewInternal.setZoom", 170 DECLARE_EXTENSION_FUNCTION("webViewInternal.setZoom",
154 WEBVIEWINTERNAL_SETZOOM); 171 WEBVIEWINTERNAL_SETZOOM);
155 172
156 WebViewInternalSetZoomFunction(); 173 WebViewInternalSetZoomFunction();
157 174
158 protected: 175 protected:
159 ~WebViewInternalSetZoomFunction() override; 176 ~WebViewInternalSetZoomFunction() override;
160 177
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 uint32 remove_mask_; 377 uint32 remove_mask_;
361 // Tracks any data related or parse errors. 378 // Tracks any data related or parse errors.
362 bool bad_message_; 379 bool bad_message_;
363 380
364 DISALLOW_COPY_AND_ASSIGN(WebViewInternalClearDataFunction); 381 DISALLOW_COPY_AND_ASSIGN(WebViewInternalClearDataFunction);
365 }; 382 };
366 383
367 } // namespace extensions 384 } // namespace extensions
368 385
369 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_ 386 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_WEB_VIEW_INTERNAL_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/inline_login/new_inline_login.html ('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