1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_ 6 #define CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_ 7 8 #include "chrome/browser/ui/zoom/zoom_controller.h" 9 10 namespace content { 11 class WebContents; 12 } 13 14 // Interface for objects that wish to be notified of changes in ZoomController. 15 class ZoomObserver { 16 public: 17 // Notification that the zoom percentage has changed. OnZoomChanged(const ZoomController::ZoomChangedEventData & data)18 virtual void OnZoomChanged(const ZoomController::ZoomChangedEventData& data) { 19 } 20 21 protected: ~ZoomObserver()22 virtual ~ZoomObserver() {} 23 }; 24 25 #endif // CHROME_BROWSER_UI_ZOOM_ZOOM_OBSERVER_H_ 26