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

Side by Side Diff: chrome/browser/chromeos/login/message_bubble.h

Issue 7850026: Aura under Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: White spaces Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
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 <vector> 9 #include <vector>
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 protected: 82 protected:
83 virtual ~MessageBubble(); 83 virtual ~MessageBubble();
84 84
85 // Overridden from views::ButtonListener: 85 // Overridden from views::ButtonListener:
86 virtual void ButtonPressed(views::Button* sender, 86 virtual void ButtonPressed(views::Button* sender,
87 const views::Event& event); 87 const views::Event& event);
88 88
89 // Overridden from views::LinkListener: 89 // Overridden from views::LinkListener:
90 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; 90 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
91 91
92 #if !defined(TOUCH_UI) 92 #if !defined(TOUCH_UI) && !defined(USE_AURA)
93 // Overridden from NativeWidgetGtk. 93 // Overridden from NativeWidgetGtk.
94 virtual void OnActiveChanged() OVERRIDE; 94 virtual void OnActiveChanged() OVERRIDE;
95 virtual void SetMouseCapture() OVERRIDE; 95 virtual void SetMouseCapture() OVERRIDE;
96 #endif 96 #endif
97 97
98 private: 98 private:
99 MessageBubble(views::Widget::InitParams::Type type, 99 MessageBubble(views::Widget::InitParams::Type type,
100 views::Widget* parent, 100 views::Widget* parent,
101 SkBitmap* image, 101 SkBitmap* image,
102 const std::wstring& text, 102 const std::wstring& text,
103 const std::vector<std::wstring>& links, 103 const std::vector<std::wstring>& links,
104 bool grab_enabled, 104 bool grab_enabled,
105 MessageBubbleDelegate* delegate); 105 MessageBubbleDelegate* delegate);
106 106
107 views::Widget* parent_; 107 views::Widget* parent_;
108 views::ImageView* icon_; 108 views::ImageView* icon_;
109 views::Label* text_; 109 views::Label* text_;
110 views::ImageButton* close_button_; 110 views::ImageButton* close_button_;
111 std::vector<views::Link*> help_links_; 111 std::vector<views::Link*> help_links_;
112 MessageBubbleDelegate* message_delegate_; 112 MessageBubbleDelegate* message_delegate_;
113 bool grab_enabled_; 113 bool grab_enabled_;
114 114
115 DISALLOW_COPY_AND_ASSIGN(MessageBubble); 115 DISALLOW_COPY_AND_ASSIGN(MessageBubble);
116 }; 116 };
117 117
118 } // namespace chromeos 118 } // namespace chromeos
119 119
120 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MESSAGE_BUBBLE_H_ 120 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MESSAGE_BUBBLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698