| OLD | NEW |
| 1 // Copyright (c) 2010 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_PINNED_CONTENTS_INFO_BUBBLE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PINNED_CONTENTS_INFO_BUBBLE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PINNED_CONTENTS_INFO_BUBBLE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PINNED_CONTENTS_INFO_BUBBLE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/views/info_bubble.h" | 9 #include "chrome/browser/ui/views/info_bubble.h" |
| 10 | 10 |
| 11 // This is a specialization of BorderContents, used to draw a border around | 11 // This is a specialization of BorderContents, used to draw a border around |
| 12 // an InfoBubble that has its contents pinned to a specific location. See | 12 // an InfoBubble that has its contents pinned to a specific location. See |
| 13 // base class for details. | 13 // base class for details. |
| 14 class PinnedContentsBorderContents : public BorderContents { | 14 class PinnedContentsBorderContents : public BorderContents { |
| 15 public: | 15 public: |
| 16 explicit PinnedContentsBorderContents(const gfx::Point& bubble_anchor) | 16 explicit PinnedContentsBorderContents(const gfx::Point& bubble_anchor) |
| 17 : bubble_anchor_(bubble_anchor) {} | 17 : bubble_anchor_(bubble_anchor) {} |
| 18 | 18 |
| 19 // BorderContents overrides: | 19 // BorderContents overrides: |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 : bubble_anchor_(bubble_anchor) {} | 59 : bubble_anchor_(bubble_anchor) {} |
| 60 virtual ~PinnedContentsInfoBubble() {} | 60 virtual ~PinnedContentsInfoBubble() {} |
| 61 | 61 |
| 62 // The location of the pinned contents (in screen coordinates). | 62 // The location of the pinned contents (in screen coordinates). |
| 63 const gfx::Point bubble_anchor_; | 63 const gfx::Point bubble_anchor_; |
| 64 | 64 |
| 65 DISALLOW_COPY_AND_ASSIGN(PinnedContentsInfoBubble); | 65 DISALLOW_COPY_AND_ASSIGN(PinnedContentsInfoBubble); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 #endif // CHROME_BROWSER_UI_VIEWS_PINNED_CONTENTS_INFO_BUBBLE_H_ | 68 #endif // CHROME_BROWSER_UI_VIEWS_PINNED_CONTENTS_INFO_BUBBLE_H_ |
| OLD | NEW |