| OLD | NEW |
| 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_CONFIRM_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_CONFIRM_BUBBLE_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_CONFIRM_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_CONFIRM_BUBBLE_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 virtual ~ConfirmBubbleView(); | 44 virtual ~ConfirmBubbleView(); |
| 45 | 45 |
| 46 // views::ButtonListener implementation. | 46 // views::ButtonListener implementation. |
| 47 virtual void ButtonPressed(views::Button* sender, | 47 virtual void ButtonPressed(views::Button* sender, |
| 48 const views::Event& event) OVERRIDE; | 48 const views::Event& event) OVERRIDE; |
| 49 | 49 |
| 50 // views::LinkListener implementation. | 50 // views::LinkListener implementation. |
| 51 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 51 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
| 52 | 52 |
| 53 // views::BubbleDelegateView implementation. | 53 // views::BubbleDelegateView implementation. |
| 54 virtual gfx::Point GetAnchorPoint() OVERRIDE; | 54 virtual gfx::Rect GetAnchorRect() OVERRIDE; |
| 55 virtual void Init() OVERRIDE; | 55 virtual void Init() OVERRIDE; |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 // The screen point where this bubble is anchored. | 58 // The screen point where this bubble is anchored. |
| 59 gfx::Point anchor_point_; | 59 gfx::Point anchor_point_; |
| 60 | 60 |
| 61 // The model to customize this bubble view. | 61 // The model to customize this bubble view. |
| 62 scoped_ptr<ConfirmBubbleModel> model_; | 62 scoped_ptr<ConfirmBubbleModel> model_; |
| 63 | 63 |
| 64 DISALLOW_COPY_AND_ASSIGN(ConfirmBubbleView); | 64 DISALLOW_COPY_AND_ASSIGN(ConfirmBubbleView); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 #endif // CHROME_BROWSER_UI_VIEWS_CONFIRM_BUBBLE_VIEW_H_ | 67 #endif // CHROME_BROWSER_UI_VIEWS_CONFIRM_BUBBLE_VIEW_H_ |
| OLD | NEW |