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

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

Issue 8863009: Fix alignment of avatar bubbles in the NTP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years 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_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/views/bubble/bubble_delegate.h" 9 #include "ui/views/bubble/bubble_delegate.h"
10 #include "ui/views/controls/button/button.h" 10 #include "ui/views/controls/button/button.h"
11 11
12 class Browser; 12 class Browser;
13 class GlobalError; 13 class GlobalError;
14 14
15 class GlobalErrorBubbleView : public views::ButtonListener, 15 class GlobalErrorBubbleView : public views::ButtonListener,
16 public views::BubbleDelegateView { 16 public views::BubbleDelegateView {
17 public: 17 public:
18 GlobalErrorBubbleView(views::View* anchor_view, 18 GlobalErrorBubbleView(views::View* anchor_view,
19 views::BubbleBorder::ArrowLocation location, 19 views::BubbleBorder::ArrowLocation location,
20 Browser* browser, 20 Browser* browser,
21 GlobalError* error); 21 GlobalError* error);
22 virtual ~GlobalErrorBubbleView(); 22 virtual ~GlobalErrorBubbleView();
23 23
24 // views::BubbleDelegateView implementation. 24 // views::BubbleDelegateView implementation.
25 virtual gfx::Point GetAnchorPoint() OVERRIDE; 25 virtual gfx::Rect GetAnchorRect() OVERRIDE;
26 26
27 // views::ButtonListener implementation. 27 // views::ButtonListener implementation.
28 virtual void ButtonPressed(views::Button* sender, 28 virtual void ButtonPressed(views::Button* sender,
29 const views::Event& event) OVERRIDE; 29 const views::Event& event) OVERRIDE;
30 30
31 // views::WidgetDelegate implementation. 31 // views::WidgetDelegate implementation.
32 virtual void WindowClosing() OVERRIDE; 32 virtual void WindowClosing() OVERRIDE;
33 33
34 private: 34 private:
35 Browser* browser_; 35 Browser* browser_;
36 GlobalError* error_; 36 GlobalError* error_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(GlobalErrorBubbleView); 38 DISALLOW_COPY_AND_ASSIGN(GlobalErrorBubbleView);
39 }; 39 };
40 40
41 #endif // CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_ 41 #endif // CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/global_error_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698