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

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

Issue 113671: Fixes the problem of the status bubble obscuring the download shelf.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_STATUS_BUBBLE_VIEWS_H_ 5 #ifndef CHROME_BROWSER_VIEWS_STATUS_BUBBLE_VIEWS_H_
6 #define CHROME_BROWSER_VIEWS_STATUS_BUBBLE_VIEWS_H_ 6 #define CHROME_BROWSER_VIEWS_STATUS_BUBBLE_VIEWS_H_
7 7
8 #include "base/gfx/rect.h" 8 #include "base/gfx/rect.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 20 matching lines...) Expand all
31 31
32 // Reposition the bubble - as we are using a WS_POPUP for the bubble, 32 // Reposition the bubble - as we are using a WS_POPUP for the bubble,
33 // we have to manually position it when the browser window moves. 33 // we have to manually position it when the browser window moves.
34 void Reposition(); 34 void Reposition();
35 35
36 // Overridden from StatusBubble: 36 // Overridden from StatusBubble:
37 virtual void SetStatus(const std::wstring& status); 37 virtual void SetStatus(const std::wstring& status);
38 virtual void SetURL(const GURL& url, const std::wstring& languages); 38 virtual void SetURL(const GURL& url, const std::wstring& languages);
39 virtual void Hide(); 39 virtual void Hide();
40 virtual void MouseMoved(); 40 virtual void MouseMoved();
41 virtual void UpdateDownloadShelfVisibility(bool visible);
41 42
42 private: 43 private:
43 class StatusView; 44 class StatusView;
44 45
45 // Initializes the popup and view. 46 // Initializes the popup and view.
46 void Init(); 47 void Init();
47 48
48 // Attempt to move the status bubble out of the way of the cursor, allowing 49 // Attempt to move the status bubble out of the way of the cursor, allowing
49 // users to see links in the region normally occupied by the status bubble. 50 // users to see links in the region normally occupied by the status bubble.
50 void AvoidMouse(); 51 void AvoidMouse();
(...skipping 12 matching lines...) Expand all
63 int offset_; 64 int offset_;
64 65
65 // We use a HWND for the popup so that it may float above any HWNDs in our 66 // We use a HWND for the popup so that it may float above any HWNDs in our
66 // UI (the location bar, for example). 67 // UI (the location bar, for example).
67 scoped_ptr<views::Widget> popup_; 68 scoped_ptr<views::Widget> popup_;
68 double opacity_; 69 double opacity_;
69 70
70 views::Widget* frame_; 71 views::Widget* frame_;
71 StatusView* view_; 72 StatusView* view_;
72 73
74 // If the download shelf is visible, do not obscure it.
75 bool download_shelf_is_visible_;
76
73 DISALLOW_COPY_AND_ASSIGN(StatusBubbleViews); 77 DISALLOW_COPY_AND_ASSIGN(StatusBubbleViews);
74 }; 78 };
75 79
76 #endif // CHROME_BROWSER_VIEWS_STATUS_BUBBLE_VIEWS_H_ 80 #endif // CHROME_BROWSER_VIEWS_STATUS_BUBBLE_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_delegate.h ('k') | chrome/browser/views/status_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698