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

Side by Side Diff: extensions/browser/extension_zoom_request_client.cc

Issue 1414643005: Disable zoom bubble for PDF extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test rebuilding patch from .diff file. Created 5 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 #include "extensions/browser/extension_zoom_request_client.h" 5 #include "extensions/browser/extension_zoom_request_client.h"
6 6
7 #include "extensions/common/features/behavior_feature.h"
8 #include "extensions/common/features/feature_provider.h"
9
7 namespace extensions { 10 namespace extensions {
8 11
9 ExtensionZoomRequestClient::ExtensionZoomRequestClient( 12 ExtensionZoomRequestClient::ExtensionZoomRequestClient(
10 scoped_refptr<const Extension> extension) 13 scoped_refptr<const Extension> extension)
11 : extension_(extension) { 14 : extension_(extension) {
12 } 15 }
13 16
17 bool ExtensionZoomRequestClient::ShouldSuppressBubble() const {
18 return FeatureProvider::GetBehaviorFeature(
19 BehaviorFeature::kZoomWithoutBubble)
20 ->IsAvailableToExtension(extension())
21 .is_available();
22 }
23
14 ExtensionZoomRequestClient::~ExtensionZoomRequestClient() { 24 ExtensionZoomRequestClient::~ExtensionZoomRequestClient() {
15 } 25 }
16 26
17 } // namespace Extensions 27 } // namespace Extensions
OLDNEW
« no previous file with comments | « extensions/browser/extension_zoom_request_client.h ('k') | extensions/common/api/_behavior_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698