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

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

Issue 425018: Merge 32277 - Fix a crash when activating a select element inside a page... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/249/src/
Patch Set: Created 11 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 | « no previous file | chrome/browser/views/location_bar_view.h » ('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) 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_H_ 5 #ifndef CHROME_BROWSER_VIEWS_BROWSER_BUBBLE_H_
6 #define CHROME_BROWSER_VIEWS_BROWSER_BUBBLE_H_ 6 #define CHROME_BROWSER_VIEWS_BROWSER_BUBBLE_H_
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
11 // A class for creating a floating window that is "attached" to a particular 11 // A class for creating a floating window that is "attached" to a particular
12 // Browser. If you don't install a delegate, the bubble will hide 12 // Browser. If you don't install a delegate, the bubble will hide
13 // automatically when the browser moves. The bubble is only shown manually. 13 // automatically when the browser moves. The bubble is only shown manually.
14 // Users are expected to delete the bubble when finished with it. 14 // Users are expected to delete the bubble when finished with it.
15 // Class assumes that RTL related mirroring is done by the view. 15 // Class assumes that RTL related mirroring is done by the view.
16 class BrowserBubble { 16 class BrowserBubble {
17 public: 17 public:
18 // Delegate to browser bubble events. 18 // Delegate to browser bubble events.
19 class Delegate { 19 class Delegate {
20 public: 20 public:
21 // Called when the Browser Window that this bubble is attached to moves. 21 // Called when the Browser Window that this bubble is attached to moves.
22 virtual void BubbleBrowserWindowMoved(BrowserBubble* bubble) = 0; 22 virtual void BubbleBrowserWindowMoved(BrowserBubble* bubble) {}
23 23
24 // Called with the Browser Window that this bubble is attached to is 24 // Called with the Browser Window that this bubble is attached to is
25 // about to close. 25 // about to close.
26 virtual void BubbleBrowserWindowClosing(BrowserBubble* bubble) = 0; 26 virtual void BubbleBrowserWindowClosing(BrowserBubble* bubble) {}
27 27
28 // Called when the bubble became active / got focus. 28 // Called when the bubble became active / got focus.
29 virtual void BubbleGotFocus(BrowserBubble* bubble) {} 29 virtual void BubbleGotFocus(BrowserBubble* bubble) {}
30 30
31 // Called when the bubble became inactive / lost focus. 31 // Called when the bubble became inactive / lost focus.
32 virtual void BubbleLostFocus(BrowserBubble* bubble) {} 32 virtual void BubbleLostFocus(BrowserBubble* bubble) {}
33 }; 33 };
34 34
35 // Note that the bubble will size itself to the preferred size of |view|. 35 // Note that the bubble will size itself to the preferred size of |view|.
36 // |view| is the embedded view, |frame| is widget that the bubble is being 36 // |view| is the embedded view, |frame| is widget that the bubble is being
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_H_ 117 #endif // CHROME_BROWSER_VIEWS_BROWSER_BUBBLE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/views/location_bar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698