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

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

Issue 10905080: Exempt status bubble windows from status bar darkening (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review nit Created 8 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_VIEWS_STATUS_BUBBLE_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_STATUS_BUBBLE_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_STATUS_BUBBLE_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_STATUS_BUBBLE_VIEWS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void SetBubbleWidth(int width); 54 void SetBubbleWidth(int width);
55 55
56 // Overridden from StatusBubble: 56 // Overridden from StatusBubble:
57 virtual void SetStatus(const string16& status) OVERRIDE; 57 virtual void SetStatus(const string16& status) OVERRIDE;
58 virtual void SetURL(const GURL& url, const std::string& languages) OVERRIDE; 58 virtual void SetURL(const GURL& url, const std::string& languages) OVERRIDE;
59 virtual void Hide() OVERRIDE; 59 virtual void Hide() OVERRIDE;
60 virtual void MouseMoved(const gfx::Point& location, 60 virtual void MouseMoved(const gfx::Point& location,
61 bool left_content) OVERRIDE; 61 bool left_content) OVERRIDE;
62 virtual void UpdateDownloadShelfVisibility(bool visible) OVERRIDE; 62 virtual void UpdateDownloadShelfVisibility(bool visible) OVERRIDE;
63 63
64 views::Widget* GetPopupForTest() { return popup(); }
65
64 protected: 66 protected:
65 views::Widget* popup() { return popup_.get(); } 67 views::Widget* popup() { return popup_.get(); }
66 68
67 private: 69 private:
68 class StatusView; 70 class StatusView;
69 class StatusViewExpander; 71 class StatusViewExpander;
70 72
71 // Initializes the popup and view. 73 // Initializes the popup and view.
72 void Init(); 74 void Init();
73 75
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // change size immediately, with no hover. 138 // change size immediately, with no hover.
137 bool is_expanded_; 139 bool is_expanded_;
138 140
139 // Times expansion of status bubble when URL is too long for standard width. 141 // Times expansion of status bubble when URL is too long for standard width.
140 base::WeakPtrFactory<StatusBubbleViews> expand_timer_factory_; 142 base::WeakPtrFactory<StatusBubbleViews> expand_timer_factory_;
141 143
142 DISALLOW_COPY_AND_ASSIGN(StatusBubbleViews); 144 DISALLOW_COPY_AND_ASSIGN(StatusBubbleViews);
143 }; 145 };
144 146
145 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_BUBBLE_VIEWS_H_ 147 #endif // CHROME_BROWSER_UI_VIEWS_STATUS_BUBBLE_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/shelf_browsertest.cc ('k') | chrome/browser/ui/views/status_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698