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

Side by Side Diff: ui/views/bubble/bubble_frame_view.h

Issue 2490273002: Couple of fixes for DesktopWindowTreeHostMus. (Closed)
Patch Set: feedback Created 4 years, 1 month 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
« no previous file with comments | « no previous file | ui/views/bubble/bubble_frame_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 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 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 void SetBubbleBorder(std::unique_ptr<BubbleBorder> border); 73 void SetBubbleBorder(std::unique_ptr<BubbleBorder> border);
74 74
75 gfx::Insets content_margins() const { return content_margins_; } 75 gfx::Insets content_margins() const { return content_margins_; }
76 76
77 void SetFootnoteView(View* view); 77 void SetFootnoteView(View* view);
78 78
79 // Given the size of the contents and the rect to point at, returns the bounds 79 // Given the size of the contents and the rect to point at, returns the bounds
80 // of the bubble window. The bubble's arrow location may change if the bubble 80 // of the bubble window. The bubble's arrow location may change if the bubble
81 // does not fit on the monitor and |adjust_if_offscreen| is true. 81 // does not fit on the monitor and |adjust_if_offscreen| is true.
82 gfx::Rect GetUpdatedWindowBounds(const gfx::Rect& anchor_rect, 82 gfx::Rect GetUpdatedWindowBounds(const gfx::Rect& anchor_rect,
83 gfx::Size client_size, 83 const gfx::Size& client_size,
84 bool adjust_if_offscreen); 84 bool adjust_if_offscreen);
85 85
86 bool close_button_clicked() const { return close_button_clicked_; } 86 bool close_button_clicked() const { return close_button_clicked_; }
87 87
88 Button* GetCloseButtonForTest() { return close_; } 88 Button* GetCloseButtonForTest() { return close_; }
89 89
90 protected: 90 protected:
91 // Returns the available screen bounds if the frame were to show in |rect|. 91 // Returns the available screen bounds if the frame were to show in |rect|.
92 virtual gfx::Rect GetAvailableScreenBounds(const gfx::Rect& rect) const; 92 virtual gfx::Rect GetAvailableScreenBounds(const gfx::Rect& rect) const;
93 93
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 // Whether the close button was clicked. 133 // Whether the close button was clicked.
134 bool close_button_clicked_; 134 bool close_button_clicked_;
135 135
136 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); 136 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView);
137 }; 137 };
138 138
139 } // namespace views 139 } // namespace views
140 140
141 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ 141 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/bubble/bubble_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698