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

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

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 #include "extensions/browser/api/web_view/web_view_internal_api.h" 5 #include "extensions/browser/api/web_view/web_view_internal_api.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/public/browser/render_process_host.h" 9 #include "content/public/browser/render_process_host.h"
10 #include "content/public/browser/render_view_host.h" 10 #include "content/public/browser/render_view_host.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 bool WebViewInternalSetAllowTransparencyFunction::RunAsyncSafe( 179 bool WebViewInternalSetAllowTransparencyFunction::RunAsyncSafe(
180 WebViewGuest* guest) { 180 WebViewGuest* guest) {
181 scoped_ptr<webview::SetAllowTransparency::Params> params( 181 scoped_ptr<webview::SetAllowTransparency::Params> params(
182 webview::SetAllowTransparency::Params::Create(*args_)); 182 webview::SetAllowTransparency::Params::Create(*args_));
183 EXTENSION_FUNCTION_VALIDATE(params.get()); 183 EXTENSION_FUNCTION_VALIDATE(params.get());
184 guest->SetAllowTransparency(params->allow); 184 guest->SetAllowTransparency(params->allow);
185 SendResponse(true); 185 SendResponse(true);
186 return true; 186 return true;
187 } 187 }
188 188
189 WebViewInternalSetAllowScalingFunction::
190 WebViewInternalSetAllowScalingFunction() {
191 }
192
193 WebViewInternalSetAllowScalingFunction::
194 ~WebViewInternalSetAllowScalingFunction() {
195 }
196
197 bool WebViewInternalSetAllowScalingFunction::RunAsyncSafe(WebViewGuest* guest) {
198 scoped_ptr<webview::SetAllowScaling::Params> params(
199 webview::SetAllowScaling::Params::Create(*args_));
200 EXTENSION_FUNCTION_VALIDATE(params.get());
201 guest->SetAllowScaling(params->allow);
202 SendResponse(true);
203 return true;
204 }
205
189 WebViewInternalSetZoomFunction::WebViewInternalSetZoomFunction() { 206 WebViewInternalSetZoomFunction::WebViewInternalSetZoomFunction() {
190 } 207 }
191 208
192 WebViewInternalSetZoomFunction::~WebViewInternalSetZoomFunction() { 209 WebViewInternalSetZoomFunction::~WebViewInternalSetZoomFunction() {
193 } 210 }
194 211
195 bool WebViewInternalSetZoomFunction::RunAsyncSafe(WebViewGuest* guest) { 212 bool WebViewInternalSetZoomFunction::RunAsyncSafe(WebViewGuest* guest) {
196 scoped_ptr<webview::SetZoom::Params> params( 213 scoped_ptr<webview::SetZoom::Params> params(
197 webview::SetZoom::Params::Create(*args_)); 214 webview::SetZoom::Params::Create(*args_));
198 EXTENSION_FUNCTION_VALIDATE(params.get()); 215 EXTENSION_FUNCTION_VALIDATE(params.get());
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 // Will finish asynchronously. 510 // Will finish asynchronously.
494 return true; 511 return true;
495 } 512 }
496 513
497 void WebViewInternalClearDataFunction::ClearDataDone() { 514 void WebViewInternalClearDataFunction::ClearDataDone() {
498 Release(); // Balanced in RunAsync(). 515 Release(); // Balanced in RunAsync().
499 SendResponse(true); 516 SendResponse(true);
500 } 517 }
501 518
502 } // namespace extensions 519 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/web_view/web_view_internal_api.h ('k') | extensions/browser/extension_function_histogram_value.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698