| 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 UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ | 5 #ifndef UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ |
| 6 #define UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ | 6 #define UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "ui/views/bubble/bubble_border.h" | 10 #include "ui/views/bubble/bubble_border.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 gfx::Path* window_mask) OVERRIDE {} | 34 gfx::Path* window_mask) OVERRIDE {} |
| 35 virtual void ResetWindowControls() OVERRIDE {} | 35 virtual void ResetWindowControls() OVERRIDE {} |
| 36 virtual void UpdateWindowIcon() OVERRIDE {} | 36 virtual void UpdateWindowIcon() OVERRIDE {} |
| 37 | 37 |
| 38 // View overrides: | 38 // View overrides: |
| 39 virtual gfx::Size GetPreferredSize() OVERRIDE; | 39 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 40 | 40 |
| 41 // Accessor for bubble border inside border contents. | 41 // Accessor for bubble border inside border contents. |
| 42 BubbleBorder* bubble_border() const; | 42 BubbleBorder* bubble_border() const; |
| 43 | 43 |
| 44 gfx::Rect GetWindowBoundsForAnchorAndClientSize( |
| 45 const gfx::Rect& anchor, |
| 46 const gfx::Size& client_size) const; |
| 47 |
| 44 private: | 48 private: |
| 45 FRIEND_TEST_ALL_PREFIXES(BubbleFrameViewBasicTest, GetBoundsForClientView); | 49 FRIEND_TEST_ALL_PREFIXES(BubbleFrameViewBasicTest, GetBoundsForClientView); |
| 46 | 50 |
| 47 BorderContentsView* border_contents_; | 51 BorderContentsView* border_contents_; |
| 48 BubbleBorder::ArrowLocation location_; | 52 BubbleBorder::ArrowLocation location_; |
| 49 bool allow_bubble_offscreen_; | 53 bool allow_bubble_offscreen_; |
| 50 | 54 |
| 51 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); | 55 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); |
| 52 }; | 56 }; |
| 53 | 57 |
| 54 } // namespace views | 58 } // namespace views |
| 55 | 59 |
| 56 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ | 60 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ |
| OLD | NEW |