| 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_VIEWS_LOCATION_BAR_ZOOM_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/views/location_bar/bubble_icon_view.h" | 9 #include "chrome/browser/ui/views/location_bar/bubble_icon_view.h" |
| 10 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 10 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 ~ZoomView() override; | 24 ~ZoomView() override; |
| 25 | 25 |
| 26 // Updates the image and its tooltip appropriately, hiding or showing the icon | 26 // Updates the image and its tooltip appropriately, hiding or showing the icon |
| 27 // as needed. | 27 // as needed. |
| 28 void Update(ui_zoom::ZoomController* zoom_controller); | 28 void Update(ui_zoom::ZoomController* zoom_controller); |
| 29 | 29 |
| 30 protected: | 30 protected: |
| 31 // BubbleIconView: | 31 // BubbleIconView: |
| 32 void OnExecuting(BubbleIconView::ExecuteSource source) override; | 32 void OnExecuting(BubbleIconView::ExecuteSource source) override; |
| 33 void GetAccessibleState(ui::AXViewState* state) override; | 33 void GetAccessibleState(ui::AXViewState* state) override; |
| 34 views::BubbleDelegateView* GetBubble() const override; | 34 views::BubbleDialogDelegateView* GetBubble() const override; |
| 35 gfx::VectorIconId GetVectorIcon() const override; | 35 gfx::VectorIconId GetVectorIcon() const override; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 // The delegate used to get the currently visible WebContents. | 38 // The delegate used to get the currently visible WebContents. |
| 39 LocationBarView::Delegate* location_bar_delegate_; | 39 LocationBarView::Delegate* location_bar_delegate_; |
| 40 | 40 |
| 41 gfx::VectorIconId image_id_; | 41 gfx::VectorIconId image_id_; |
| 42 | 42 |
| 43 DISALLOW_COPY_AND_ASSIGN(ZoomView); | 43 DISALLOW_COPY_AND_ASSIGN(ZoomView); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_VIEW_H_ | 46 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_VIEW_H_ |
| OLD | NEW |