Infobar material design refresh: layout
[chromium-blink-merge.git] / chrome / browser / ui / views / network_profile_bubble_view.h
blob97720f6cbdab7db88cc867a318cacb150f94abf8
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.
5 #ifndef CHROME_BROWSER_UI_VIEWS_NETWORK_PROFILE_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_NETWORK_PROFILE_BUBBLE_VIEW_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/views/bubble/bubble_delegate.h"
11 #include "ui/views/controls/button/button.h"
12 #include "ui/views/controls/link_listener.h"
14 class Profile;
16 namespace content {
17 class PageNavigator;
20 class NetworkProfileBubbleView : public views::BubbleDelegateView,
21 public views::ButtonListener,
22 public views::LinkListener {
23 public:
24 NetworkProfileBubbleView(views::View* anchor,
25 content::PageNavigator* navigator,
26 Profile* profile);
27 private:
28 ~NetworkProfileBubbleView() override;
30 // views::BubbleDelegateView:
31 void Init() override;
33 // views::ButtonListener:
34 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
36 // views::LinkListener:
37 void LinkClicked(views::Link* source, int event_flags) override;
39 // Used for loading pages.
40 content::PageNavigator* navigator_;
41 Profile* profile_;
43 DISALLOW_COPY_AND_ASSIGN(NetworkProfileBubbleView);
46 #endif // CHROME_BROWSER_UI_VIEWS_NETWORK_PROFILE_BUBBLE_VIEW_H_