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

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

Issue 8588064: views: Move bubble, events, focus and layout to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « views/bubble/bubble_delegate_unittest.cc ('k') | 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) 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 VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ 5 #ifndef VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_
6 #define VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ 6 #define VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/gtest_prod_util.h" 9 #include "ui/views/bubble/bubble_frame_view.h"
10 #include "ui/views/window/non_client_view.h" 10 // TODO(tfarina): remove this file once all includes have been updated.
11 #include "views/bubble/bubble_border.h"
12
13 namespace views {
14
15 class BorderContentsView;
16
17 // BubbleFrameView to render BubbleBorder.
18 //
19 ////////////////////////////////////////////////////////////////////////////////
20 class VIEWS_EXPORT BubbleFrameView : public NonClientFrameView {
21 public:
22 BubbleFrameView(BubbleBorder::ArrowLocation location,
23 const gfx::Size& client_size,
24 SkColor color,
25 bool allow_bubble_offscreen);
26 virtual ~BubbleFrameView();
27
28 // NonClientFrameView overrides:
29 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE;
30 virtual gfx::Rect GetWindowBoundsForClientBounds(
31 const gfx::Rect& client_bounds) const OVERRIDE;
32 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
33 virtual void GetWindowMask(const gfx::Size& size,
34 gfx::Path* window_mask) OVERRIDE {}
35 virtual void EnableClose(bool enable) OVERRIDE {}
36 virtual void ResetWindowControls() OVERRIDE {}
37 virtual void UpdateWindowIcon() OVERRIDE {}
38
39 // View overrides:
40 virtual gfx::Size GetPreferredSize() OVERRIDE;
41
42 // Accessor for bubble border inside border contents.
43 BubbleBorder* bubble_border() const;
44
45 private:
46 FRIEND_TEST_ALL_PREFIXES(BubbleFrameViewBasicTest, GetBoundsForClientView);
47
48 BorderContentsView* border_contents_;
49 BubbleBorder::ArrowLocation location_;
50 bool allow_bubble_offscreen_;
51
52 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView);
53 };
54
55 } // namespace views
56 11
57 #endif // VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ 12 #endif // VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « views/bubble/bubble_delegate_unittest.cc ('k') | views/bubble/bubble_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698