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

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

Issue 8863009: Fix alignment of avatar bubbles in the NTP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use Rect::Ofset() Created 9 years 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 | Annotate | Revision Log
OLDNEW
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
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, const gfx::Size& client_size) const;
msw 2011/12/08 00:40:14 Put params on independent lines.
sail 2011/12/08 01:41:10 Done.
46
44 private: 47 private:
45 FRIEND_TEST_ALL_PREFIXES(BubbleFrameViewBasicTest, GetBoundsForClientView); 48 FRIEND_TEST_ALL_PREFIXES(BubbleFrameViewBasicTest, GetBoundsForClientView);
46 49
47 BorderContentsView* border_contents_; 50 BorderContentsView* border_contents_;
48 BubbleBorder::ArrowLocation location_; 51 BubbleBorder::ArrowLocation location_;
49 bool allow_bubble_offscreen_; 52 bool allow_bubble_offscreen_;
50 53
51 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); 54 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView);
52 }; 55 };
53 56
54 } // namespace views 57 } // namespace views
55 58
56 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ 59 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698