OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CHROMEOS_LOGIN_MESSAGE_BUBBLE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MESSAGE_BUBBLE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MESSAGE_BUBBLE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MESSAGE_BUBBLE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 link_listener_ = link_listener; | 48 link_listener_ = link_listener; |
49 } | 49 } |
50 | 50 |
51 protected: | 51 protected: |
52 | 52 |
53 // Overridden from views::BubbleDelegateView: | 53 // Overridden from views::BubbleDelegateView: |
54 virtual void Init() OVERRIDE; | 54 virtual void Init() OVERRIDE; |
55 | 55 |
56 // Overridden from views::ButtonListener: | 56 // Overridden from views::ButtonListener: |
57 virtual void ButtonPressed(views::Button* sender, | 57 virtual void ButtonPressed(views::Button* sender, |
58 const views::Event& event) OVERRIDE; | 58 const ui::Event& event) OVERRIDE; |
59 | 59 |
60 // Overridden from views::LinkListener: | 60 // Overridden from views::LinkListener: |
61 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 61 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
62 | 62 |
63 private: | 63 private: |
64 gfx::ImageSkia* image_; | 64 gfx::ImageSkia* image_; |
65 string16 text_; | 65 string16 text_; |
66 views::ImageButton* close_button_; | 66 views::ImageButton* close_button_; |
67 std::vector<views::Link*> help_links_; | 67 std::vector<views::Link*> help_links_; |
68 MessageBubbleLinkListener* link_listener_; | 68 MessageBubbleLinkListener* link_listener_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(MessageBubble); | 70 DISALLOW_COPY_AND_ASSIGN(MessageBubble); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace chromeos | 73 } // namespace chromeos |
74 | 74 |
75 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MESSAGE_BUBBLE_H_ | 75 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MESSAGE_BUBBLE_H_ |
OLD | NEW |