OLD | NEW |
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 |
OLD | NEW |