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

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

Issue 6756043: Consolidate Widget Event code, other cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and merge. Created 9 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/message_bubble.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/ui/views/info_bubble.h" 9 #include "chrome/browser/ui/views/info_bubble.h"
10 #include "views/controls/button/button.h" 10 #include "views/controls/button/button.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 protected: 65 protected:
66 // Overridden from views::ButtonListener: 66 // Overridden from views::ButtonListener:
67 virtual void ButtonPressed(views::Button* sender, 67 virtual void ButtonPressed(views::Button* sender,
68 const views::Event& event); 68 const views::Event& event);
69 69
70 // Overridden from views::LinkController: 70 // Overridden from views::LinkController:
71 virtual void LinkActivated(views::Link* source, int event_flags); 71 virtual void LinkActivated(views::Link* source, int event_flags);
72 72
73 // Overridden from WidgetGtk. 73 // Overridden from WidgetGtk.
74 virtual void IsActiveChanged(); 74 virtual void IsActiveChanged();
75 virtual void SetNativeCapture(); 75 virtual void SetMouseCapture();
76 76
77 private: 77 private:
78 MessageBubble(views::WidgetGtk::Type type, 78 MessageBubble(views::WidgetGtk::Type type,
79 views::Widget* parent, 79 views::Widget* parent,
80 SkBitmap* image, 80 SkBitmap* image,
81 const std::wstring& text, 81 const std::wstring& text,
82 const std::wstring& help, 82 const std::wstring& help,
83 bool grab_enabled, 83 bool grab_enabled,
84 MessageBubbleDelegate* delegate); 84 MessageBubbleDelegate* delegate);
85 85
86 views::Widget* parent_; 86 views::Widget* parent_;
87 views::ImageView* icon_; 87 views::ImageView* icon_;
88 views::Label* text_; 88 views::Label* text_;
89 views::ImageButton* close_button_; 89 views::ImageButton* close_button_;
90 views::Link* help_link_; 90 views::Link* help_link_;
91 MessageBubbleDelegate* message_delegate_; 91 MessageBubbleDelegate* message_delegate_;
92 bool grab_enabled_; 92 bool grab_enabled_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(MessageBubble); 94 DISALLOW_COPY_AND_ASSIGN(MessageBubble);
95 }; 95 };
96 96
97 } // namespace chromeos 97 } // namespace chromeos
98 98
99 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MESSAGE_BUBBLE_H_ 99 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MESSAGE_BUBBLE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/message_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698