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

Side by Side Diff: chrome/browser/views/info_bubble.h

Issue 2682004: MessageBubble which does not require separate window and does not grab input on mouse press event. (Closed)
Patch Set: moved HandleGrabBroke to protected section Created 10 years, 6 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
« no previous file with comments | « chrome/browser/chromeos/login/message_bubble.cc ('k') | chrome/browser/views/info_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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_VIEWS_INFO_BUBBLE_H_ 5 #ifndef CHROME_BROWSER_VIEWS_INFO_BUBBLE_H_
6 #define CHROME_BROWSER_VIEWS_INFO_BUBBLE_H_ 6 #define CHROME_BROWSER_VIEWS_INFO_BUBBLE_H_
7 7
8 #include "app/slide_animation.h" 8 #include "app/slide_animation.h"
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 #include "views/accelerator.h" 10 #include "views/accelerator.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 virtual void Close(); 209 virtual void Close();
210 210
211 // Overridden from AnimationDelegate: 211 // Overridden from AnimationDelegate:
212 virtual void AnimationEnded(const Animation* animation); 212 virtual void AnimationEnded(const Animation* animation);
213 virtual void AnimationProgressed(const Animation* animation); 213 virtual void AnimationProgressed(const Animation* animation);
214 214
215 static const SkColor kBackgroundColor; 215 static const SkColor kBackgroundColor;
216 216
217 protected: 217 protected:
218 InfoBubble(); 218 InfoBubble();
219 #if defined(OS_CHROMEOS)
220 explicit InfoBubble(views::WidgetGtk::Type type);
221 #endif
219 virtual ~InfoBubble() {} 222 virtual ~InfoBubble() {}
220 223
221 // Creates the InfoBubble. 224 // Creates the InfoBubble.
222 virtual void Init(views::Widget* parent, 225 virtual void Init(views::Widget* parent,
223 const gfx::Rect& position_relative_to, 226 const gfx::Rect& position_relative_to,
224 BubbleBorder::ArrowLocation arrow_location, 227 BubbleBorder::ArrowLocation arrow_location,
225 views::View* contents, 228 views::View* contents,
226 InfoBubbleDelegate* delegate); 229 InfoBubbleDelegate* delegate);
227 230
228 // Instantiates and returns the BorderContents this InfoBubble should use. 231 // Instantiates and returns the BorderContents this InfoBubble should use.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 278
276 gfx::Rect position_relative_to_; 279 gfx::Rect position_relative_to_;
277 BubbleBorder::ArrowLocation arrow_location_; 280 BubbleBorder::ArrowLocation arrow_location_;
278 281
279 views::View* contents_; 282 views::View* contents_;
280 283
281 DISALLOW_COPY_AND_ASSIGN(InfoBubble); 284 DISALLOW_COPY_AND_ASSIGN(InfoBubble);
282 }; 285 };
283 286
284 #endif // CHROME_BROWSER_VIEWS_INFO_BUBBLE_H_ 287 #endif // CHROME_BROWSER_VIEWS_INFO_BUBBLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/message_bubble.cc ('k') | chrome/browser/views/info_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698