OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef CHROME_BROWSER_UI_ZOOM_ZOOM_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_ZOOM_ZOOM_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_ZOOM_ZOOM_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_ZOOM_ZOOM_CONTROLLER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/browser/prefs/pref_member.h" | 10 #include "chrome/browser/api/prefs/pref_member.h" |
11 #include "content/public/browser/notification_observer.h" | 11 #include "content/public/browser/notification_observer.h" |
12 #include "content/public/browser/notification_registrar.h" | 12 #include "content/public/browser/notification_registrar.h" |
13 #include "content/public/browser/web_contents_observer.h" | 13 #include "content/public/browser/web_contents_observer.h" |
14 | 14 |
15 class TabContents; | 15 class TabContents; |
16 class ZoomObserver; | 16 class ZoomObserver; |
17 | 17 |
18 // Per-tab class to manage the Omnibox zoom icon. | 18 // Per-tab class to manage the Omnibox zoom icon. |
19 class ZoomController : public content::NotificationObserver, | 19 class ZoomController : public content::NotificationObserver, |
20 public content::WebContentsObserver { | 20 public content::WebContentsObserver { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // TabContents that owns this instance. | 66 // TabContents that owns this instance. |
67 TabContents* tab_contents_; | 67 TabContents* tab_contents_; |
68 | 68 |
69 // Observer receiving notifications on state changes. | 69 // Observer receiving notifications on state changes. |
70 ZoomObserver* observer_; | 70 ZoomObserver* observer_; |
71 | 71 |
72 DISALLOW_COPY_AND_ASSIGN(ZoomController); | 72 DISALLOW_COPY_AND_ASSIGN(ZoomController); |
73 }; | 73 }; |
74 | 74 |
75 #endif // CHROME_BROWSER_UI_ZOOM_ZOOM_CONTROLLER_H_ | 75 #endif // CHROME_BROWSER_UI_ZOOM_ZOOM_CONTROLLER_H_ |
OLD | NEW |