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

Side by Side Diff: chrome/browser/ui/status_bubble.h

Issue 2175833002: AdjustBoundsToEnsureMinimumWindowVisibility may cause unwanted shift if window dimension is small (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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) 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 CHROME_BROWSER_UI_STATUS_BUBBLE_H_ 5 #ifndef CHROME_BROWSER_UI_STATUS_BUBBLE_H_
6 #define CHROME_BROWSER_UI_STATUS_BUBBLE_H_ 6 #define CHROME_BROWSER_UI_STATUS_BUBBLE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 23 matching lines...) Expand all
34 virtual void SetStatus(const base::string16& status) = 0; 34 virtual void SetStatus(const base::string16& status) = 0;
35 35
36 // Sets the bubble text to a URL - if given a non-empty URL, this will cause 36 // Sets the bubble text to a URL - if given a non-empty URL, this will cause
37 // the bubble to fade in and remain open until given an empty URL or until 37 // the bubble to fade in and remain open until given an empty URL or until
38 // the Hide() method is called. 38 // the Hide() method is called.
39 virtual void SetURL(const GURL& url) = 0; 39 virtual void SetURL(const GURL& url) = 0;
40 40
41 // Skip the fade and instant-hide the bubble. 41 // Skip the fade and instant-hide the bubble.
42 virtual void Hide() = 0; 42 virtual void Hide() = 0;
43 43
44 // Calculate and set new position for status bubble.
45 virtual void Reposition() = 0;
46
44 // Called when the user's mouse has moved over web content. This is used to 47 // Called when the user's mouse has moved over web content. This is used to
45 // determine when the status area should move out of the way of the user's 48 // determine when the status area should move out of the way of the user's
46 // mouse. |position| is the absolute position of the pointer, and 49 // mouse. |position| is the absolute position of the pointer, and
47 // |left_content| is true if the mouse just left the content area. 50 // |left_content| is true if the mouse just left the content area.
48 virtual void MouseMoved(const gfx::Point& position, bool left_content) = 0; 51 virtual void MouseMoved(const gfx::Point& position, bool left_content) = 0;
49 52
50 // Called when the download shelf becomes visible or invisible. 53 // Called when the download shelf becomes visible or invisible.
51 // This is used by to ensure that the status bubble does not obscure 54 // This is used by to ensure that the status bubble does not obscure
52 // the download shelf, when it is visible. 55 // the download shelf, when it is visible.
53 virtual void UpdateDownloadShelfVisibility(bool visible) = 0; 56 virtual void UpdateDownloadShelfVisibility(bool visible) = 0;
54 }; 57 };
55 58
56 #endif // CHROME_BROWSER_UI_STATUS_BUBBLE_H_ 59 #endif // CHROME_BROWSER_UI_STATUS_BUBBLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698