Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1200)

Side by Side Diff: chrome/browser/ui/views/location_bar/zoom_view.h

Issue 1759453002: Convert location bar bubble delegates to bubble dialog delegates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix ImmersiveFullscreenController Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698