OLD | NEW |
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_CONFIRM_BUBBLE_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_CONFIRM_BUBBLE_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_CONFIRM_BUBBLE_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_CONFIRM_BUBBLE_VIEWS_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "ui/views/bubble/bubble_delegate.h" | 10 #include "ui/views/bubble/bubble_delegate.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 public views::LinkListener { | 37 public views::LinkListener { |
38 public: | 38 public: |
39 explicit ConfirmBubbleViews(const gfx::Point& anchor_point, | 39 explicit ConfirmBubbleViews(const gfx::Point& anchor_point, |
40 ConfirmBubbleModel* model); | 40 ConfirmBubbleModel* model); |
41 | 41 |
42 protected: | 42 protected: |
43 virtual ~ConfirmBubbleViews(); | 43 virtual ~ConfirmBubbleViews(); |
44 | 44 |
45 // views::ButtonListener implementation. | 45 // views::ButtonListener implementation. |
46 virtual void ButtonPressed(views::Button* sender, | 46 virtual void ButtonPressed(views::Button* sender, |
47 const views::Event& event) OVERRIDE; | 47 const ui::Event& event) OVERRIDE; |
48 | 48 |
49 // views::LinkListener implementation. | 49 // views::LinkListener implementation. |
50 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 50 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
51 | 51 |
52 // views::BubbleDelegateView implementation. | 52 // views::BubbleDelegateView implementation. |
53 virtual gfx::Rect GetAnchorRect() OVERRIDE; | 53 virtual gfx::Rect GetAnchorRect() OVERRIDE; |
54 virtual void Init() OVERRIDE; | 54 virtual void Init() OVERRIDE; |
55 | 55 |
56 private: | 56 private: |
57 // The screen point where this bubble is anchored. | 57 // The screen point where this bubble is anchored. |
58 gfx::Point anchor_point_; | 58 gfx::Point anchor_point_; |
59 | 59 |
60 // The model to customize this bubble view. | 60 // The model to customize this bubble view. |
61 scoped_ptr<ConfirmBubbleModel> model_; | 61 scoped_ptr<ConfirmBubbleModel> model_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(ConfirmBubbleViews); | 63 DISALLOW_COPY_AND_ASSIGN(ConfirmBubbleViews); |
64 }; | 64 }; |
65 | 65 |
66 #endif // CHROME_BROWSER_UI_VIEWS_CONFIRM_BUBBLE_VIEWS_H_ | 66 #endif // CHROME_BROWSER_UI_VIEWS_CONFIRM_BUBBLE_VIEWS_H_ |
OLD | NEW |