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

Side by Side Diff: chrome/browser/views/browser_bubble.h

Issue 259065: Add an BubbleBorder to BrowserAction popups and fix positioning of the (Closed)
Patch Set: cleanup Created 11 years, 2 months 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_VIEWS_BROWSER_BUBBLE_ 5 #ifndef CHROME_BROWSER_VIEWS_BROWSER_BUBBLE_
6 #define CHROME_BROWSER_VIEWS_BROWSER_BUBBLE_ 6 #define CHROME_BROWSER_VIEWS_BROWSER_BUBBLE_
7 7
8 #include "views/view.h" 8 #include "views/view.h"
9 #include "views/widget/widget.h" 9 #include "views/widget/widget.h"
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // Resize the bubble to fit the view. 81 // Resize the bubble to fit the view.
82 void ResizeToView(); 82 void ResizeToView();
83 83
84 protected: 84 protected:
85 // Create the popup widget. 85 // Create the popup widget.
86 virtual void InitPopup(); 86 virtual void InitPopup();
87 87
88 // Move the popup to an absolute position. 88 // Move the popup to an absolute position.
89 void MovePopup(int x, int y, int w, int h); 89 void MovePopup(int x, int y, int w, int h);
90 90
91 private: 91 // The widget that this bubble is in.
92 views::Widget* popup_;
93
92 // The frame that this bubble is attached to. 94 // The frame that this bubble is attached to.
93 views::Widget* frame_; 95 views::Widget* frame_;
94 gfx::NativeView frame_native_view_; 96 gfx::NativeView frame_native_view_;
95 97
98 private:
96 // The view that is displayed in this bubble. 99 // The view that is displayed in this bubble.
97 views::View* view_; 100 views::View* view_;
98 101
99 // The widget that this bubble is in.
100 views::Widget* popup_;
101
102 // The bounds relative to the frame. 102 // The bounds relative to the frame.
103 gfx::Rect bounds_; 103 gfx::Rect bounds_;
104 104
105 // Current visibility. 105 // Current visibility.
106 bool visible_; 106 bool visible_;
107 107
108 // The delegate isn't owned by the bubble. 108 // The delegate isn't owned by the bubble.
109 Delegate* delegate_; 109 Delegate* delegate_;
110 110
111 // Is the bubble attached to a Browser window. 111 // Is the bubble attached to a Browser window.
112 bool attached_; 112 bool attached_;
113 113
114 DISALLOW_COPY_AND_ASSIGN(BrowserBubble); 114 DISALLOW_COPY_AND_ASSIGN(BrowserBubble);
115 }; 115 };
116 116
117 #endif // CHROME_BROWSER_VIEWS_BROWSER_BUBBLE_ 117 #endif // CHROME_BROWSER_VIEWS_BROWSER_BUBBLE_
OLDNEW
« no previous file with comments | « chrome/browser/views/browser_actions_container.cc ('k') | chrome/browser/views/browser_bubble_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698