Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_ZOOM_REQUEST_CLIENT_H_ | |
| 6 #define EXTENSIONS_BROWSER_EXTENSION_ZOOM_REQUEST_CLIENT_H_ | |
| 7 | |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 #include "components/ui/zoom/zoom_controller.h" | |
| 10 #include "extensions/common/extension.h" | |
| 11 | |
| 12 namespace extensions { | |
| 13 | |
| 14 class Extension; | |
| 15 | |
| 16 class ExtensionZoomRequestClient : public components::ZoomRequestClient { | |
|
James Cook
2014/12/04 17:17:16
nit: Class comment explaining why this must exist
wjmaclean
2014/12/04 18:27:17
Done.
| |
| 17 public: | |
| 18 explicit ExtensionZoomRequestClient(scoped_refptr<const Extension> extension); | |
| 19 | |
| 20 const Extension* extension() const { return extension_.get(); } | |
| 21 | |
| 22 private: | |
| 23 virtual ~ExtensionZoomRequestClient(); | |
|
James Cook
2014/12/04 17:17:16
nit: no virtual, "override" instead
wjmaclean
2014/12/04 18:27:17
Done.
Interesting, was unaware of the 'override'
| |
| 24 scoped_refptr<const Extension> extension_; | |
| 25 | |
| 26 DISALLOW_COPY_AND_ASSIGN(ExtensionZoomRequestClient); | |
| 27 }; | |
| 28 | |
| 29 } // namespace extensions | |
| 30 | |
| 31 #endif // EXTENSIONS_BROWSER_EXTENSION_ZOOM_REQUEST_CLIENT_H_ | |
| OLD | NEW |