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

Side by Side Diff: chrome/browser/ui/views/chrome_to_mobile_bubble_view.h

Issue 10830366: Avoid overriding Bubble's GetAnchorRect() where possible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove a redundant DCHECK. Created 8 years, 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_VIEWS_CHROME_TO_MOBILE_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_CHROME_TO_MOBILE_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_CHROME_TO_MOBILE_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_CHROME_TO_MOBILE_BUBBLE_VIEW_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 28 matching lines...) Expand all
39 public ChromeToMobileService::Observer { 39 public ChromeToMobileService::Observer {
40 public: 40 public:
41 virtual ~ChromeToMobileBubbleView(); 41 virtual ~ChromeToMobileBubbleView();
42 42
43 static void ShowBubble(views::View* anchor_view, Browser* browser); 43 static void ShowBubble(views::View* anchor_view, Browser* browser);
44 static bool IsShowing(); 44 static bool IsShowing();
45 static void Hide(); 45 static void Hide();
46 46
47 // views::BubbleDelegateView methods. 47 // views::BubbleDelegateView methods.
48 virtual views::View* GetInitiallyFocusedView() OVERRIDE; 48 virtual views::View* GetInitiallyFocusedView() OVERRIDE;
49 virtual gfx::Rect GetAnchorRect() OVERRIDE;
50 virtual void WindowClosing() OVERRIDE; 49 virtual void WindowClosing() OVERRIDE;
51 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; 50 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE;
52 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; 51 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
53 52
54 // views::ButtonListener method. 53 // views::ButtonListener method.
55 virtual void ButtonPressed(views::Button* sender, 54 virtual void ButtonPressed(views::Button* sender,
56 const ui::Event& event) OVERRIDE; 55 const ui::Event& event) OVERRIDE;
57 56
58 // views::LinkListener method. 57 // views::LinkListener method.
59 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; 58 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 views::TextButton* send_; 95 views::TextButton* send_;
97 views::TextButton* cancel_; 96 views::TextButton* cancel_;
98 97
99 // An animation used to cycle through the "Sending..." status messages. 98 // An animation used to cycle through the "Sending..." status messages.
100 scoped_ptr<ui::ThrobAnimation> progress_animation_; 99 scoped_ptr<ui::ThrobAnimation> progress_animation_;
101 100
102 DISALLOW_COPY_AND_ASSIGN(ChromeToMobileBubbleView); 101 DISALLOW_COPY_AND_ASSIGN(ChromeToMobileBubbleView);
103 }; 102 };
104 103
105 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_TO_MOBILE_BUBBLE_VIEW_H_ 104 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_TO_MOBILE_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc ('k') | chrome/browser/ui/views/chrome_to_mobile_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698