| 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_NETWORK_PROFILE_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_NETWORK_PROFILE_BUBBLE_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_NETWORK_PROFILE_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_NETWORK_PROFILE_BUBBLE_VIEW_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 "ui/views/bubble/bubble_delegate.h" | 10 #include "ui/views/bubble/bubble_delegate.h" |
| 11 #include "ui/views/controls/button/button.h" | 11 #include "ui/views/controls/button/button.h" |
| 12 #include "ui/views/controls/link_listener.h" | 12 #include "ui/views/controls/link_listener.h" |
| 13 | 13 |
| 14 class Profile; | 14 class Profile; |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 class PageNavigator; | 17 class PageNavigator; |
| 18 } | 18 } |
| 19 | 19 |
| 20 class NetworkProfileBubbleView : public views::BubbleDelegateView, | 20 class NetworkProfileBubbleView : public views::BubbleDelegateView, |
| 21 public views::ButtonListener, | 21 public views::ButtonListener, |
| 22 public views::LinkListener { | 22 public views::LinkListener { |
| 23 public: | 23 public: |
| 24 NetworkProfileBubbleView(views::View* anchor, | 24 NetworkProfileBubbleView(views::View* anchor, |
| 25 content::PageNavigator* navigator, | 25 content::PageNavigator* navigator, |
| 26 Profile* profile); | 26 Profile* profile); |
| 27 private: | 27 private: |
| 28 virtual ~NetworkProfileBubbleView(); | 28 ~NetworkProfileBubbleView() override; |
| 29 | 29 |
| 30 // views::BubbleDelegateView: | 30 // views::BubbleDelegateView: |
| 31 virtual void Init() override; | 31 void Init() override; |
| 32 | 32 |
| 33 // views::ButtonListener: | 33 // views::ButtonListener: |
| 34 virtual void ButtonPressed(views::Button* sender, | 34 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| 35 const ui::Event& event) override; | |
| 36 | 35 |
| 37 // views::LinkListener: | 36 // views::LinkListener: |
| 38 virtual void LinkClicked(views::Link* source, int event_flags) override; | 37 void LinkClicked(views::Link* source, int event_flags) override; |
| 39 | 38 |
| 40 // Used for loading pages. | 39 // Used for loading pages. |
| 41 content::PageNavigator* navigator_; | 40 content::PageNavigator* navigator_; |
| 42 Profile* profile_; | 41 Profile* profile_; |
| 43 | 42 |
| 44 DISALLOW_COPY_AND_ASSIGN(NetworkProfileBubbleView); | 43 DISALLOW_COPY_AND_ASSIGN(NetworkProfileBubbleView); |
| 45 }; | 44 }; |
| 46 | 45 |
| 47 #endif // CHROME_BROWSER_UI_VIEWS_NETWORK_PROFILE_BUBBLE_VIEW_H_ | 46 #endif // CHROME_BROWSER_UI_VIEWS_NETWORK_PROFILE_BUBBLE_VIEW_H_ |
| OLD | NEW |