| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_BUBBLE_POSITIONER_H_ | |
| 6 #define CHROME_BROWSER_BUBBLE_POSITIONER_H_ | |
| 7 | |
| 8 namespace gfx { | |
| 9 class Rect; | |
| 10 } | |
| 11 | |
| 12 // An object in the browser UI can implement this interface to provide display | |
| 13 // bounds for the omnibox bubble and info bubble views. | |
| 14 class BubblePositioner { | |
| 15 public: | |
| 16 // Returns the bounds of the "location bar" stack (including star/go buttons | |
| 17 // where relevant). The omnibox dropdown uses this to calculate its width and | |
| 18 // y-coordinate, and views showing InfoBubbles use it to find the y-coordinate | |
| 19 // they should show at, so that all "bubble" UIs show up at the same vertical | |
| 20 // position. | |
| 21 virtual gfx::Rect GetLocationStackBounds() const = 0; | |
| 22 }; | |
| 23 | |
| 24 #endif // CHROME_BROWSER_BUBBLE_POSITIONER_H_ | |
| OLD | NEW |