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

Side by Side Diff: chrome/browser/ui/views/first_run_bubble.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_FIRST_RUN_BUBBLE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FIRST_RUN_BUBBLE_H_
6 #define CHROME_BROWSER_UI_VIEWS_FIRST_RUN_BUBBLE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FIRST_RUN_BUBBLE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/first_run/first_run.h" 9 #include "chrome/browser/first_run/first_run.h"
10 #include "ui/views/bubble/bubble_delegate.h" 10 #include "ui/views/bubble/bubble_delegate.h"
11 #include "ui/views/controls/button/button.h" 11 #include "ui/views/controls/button/button.h"
12 12
13 class Profile; 13 class Profile;
14 14
15 class FirstRunBubble : public views::BubbleDelegateView, 15 class FirstRunBubble : public views::BubbleDelegateView,
16 public views::ButtonListener { 16 public views::ButtonListener {
17 public: 17 public:
18 static FirstRunBubble* ShowBubble( 18 static FirstRunBubble* ShowBubble(
19 Profile* profile, 19 Profile* profile,
20 views::View* anchor_view, 20 views::View* anchor_view,
21 views::BubbleBorder::ArrowLocation location, 21 views::BubbleBorder::ArrowLocation location,
22 FirstRun::BubbleType bubble_type); 22 FirstRun::BubbleType bubble_type);
23 23
24 // views::BubbleDelegateView overrides: 24 // views::BubbleDelegateView overrides:
25 virtual gfx::Point GetAnchorPoint() OVERRIDE; 25 virtual gfx::Rect GetAnchorRect() OVERRIDE;
26 26
27 protected: 27 protected:
28 // views::BubbleDelegateView overrides: 28 // views::BubbleDelegateView overrides:
29 virtual void Init() OVERRIDE; 29 virtual void Init() OVERRIDE;
30 30
31 private: 31 private:
32 FirstRunBubble(Profile* profile, 32 FirstRunBubble(Profile* profile,
33 views::View* anchor_view, 33 views::View* anchor_view,
34 views::BubbleBorder::ArrowLocation arrow_location, 34 views::BubbleBorder::ArrowLocation arrow_location,
35 FirstRun::BubbleType bubble_type); 35 FirstRun::BubbleType bubble_type);
36 virtual ~FirstRunBubble(); 36 virtual ~FirstRunBubble();
37 37
38 // views::ButtonListener overrides: 38 // views::ButtonListener overrides:
39 virtual void ButtonPressed(views::Button* sender, 39 virtual void ButtonPressed(views::Button* sender,
40 const views::Event& event) OVERRIDE; 40 const views::Event& event) OVERRIDE;
41 41
42 Profile* profile_; 42 Profile* profile_;
43 43
44 FirstRun::BubbleType bubble_type_; 44 FirstRun::BubbleType bubble_type_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(FirstRunBubble); 46 DISALLOW_COPY_AND_ASSIGN(FirstRunBubble);
47 }; 47 };
48 48
49 #endif // CHROME_BROWSER_UI_VIEWS_FIRST_RUN_BUBBLE_H_ 49 #endif // CHROME_BROWSER_UI_VIEWS_FIRST_RUN_BUBBLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_installed_bubble.cc ('k') | chrome/browser/ui/views/first_run_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698