| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 const views::Event& event); | 70 const views::Event& event); |
| 71 | 71 |
| 72 // Overridden from views::LinkListener: | 72 // Overridden from views::LinkListener: |
| 73 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 73 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
| 74 | 74 |
| 75 // Overridden from WidgetGtk. | 75 // Overridden from WidgetGtk. |
| 76 virtual void IsActiveChanged(); | 76 virtual void IsActiveChanged(); |
| 77 virtual void SetMouseCapture(); | 77 virtual void SetMouseCapture(); |
| 78 | 78 |
| 79 private: | 79 private: |
| 80 MessageBubble(views::WidgetGtk::Type type, | 80 MessageBubble(views::Widget::CreateParams::Type type, |
| 81 views::Widget* parent, | 81 views::Widget* parent, |
| 82 SkBitmap* image, | 82 SkBitmap* image, |
| 83 const std::wstring& text, | 83 const std::wstring& text, |
| 84 const std::wstring& help, | 84 const std::wstring& help, |
| 85 bool grab_enabled, | 85 bool grab_enabled, |
| 86 MessageBubbleDelegate* delegate); | 86 MessageBubbleDelegate* delegate); |
| 87 | 87 |
| 88 views::Widget* parent_; | 88 views::Widget* parent_; |
| 89 views::ImageView* icon_; | 89 views::ImageView* icon_; |
| 90 views::Label* text_; | 90 views::Label* text_; |
| 91 views::ImageButton* close_button_; | 91 views::ImageButton* close_button_; |
| 92 views::Link* help_link_; | 92 views::Link* help_link_; |
| 93 MessageBubbleDelegate* message_delegate_; | 93 MessageBubbleDelegate* message_delegate_; |
| 94 bool grab_enabled_; | 94 bool grab_enabled_; |
| 95 | 95 |
| 96 DISALLOW_COPY_AND_ASSIGN(MessageBubble); | 96 DISALLOW_COPY_AND_ASSIGN(MessageBubble); |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 } // namespace chromeos | 99 } // namespace chromeos |
| 100 | 100 |
| 101 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MESSAGE_BUBBLE_H_ | 101 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MESSAGE_BUBBLE_H_ |
| OLD | NEW |