Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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 COMPONENTS_BUBBLE_BUBBLE_UI_H_ | |
| 6 #define COMPONENTS_BUBBLE_BUBBLE_UI_H_ | |
| 7 | |
| 8 class BubbleUI { | |
| 9 public: | |
| 10 virtual ~BubbleUI() {} | |
|
msw
2015/08/13 03:37:23
nit: Should this be defined in a separate .cc file
hcarmona
2015/08/15 02:03:21
Done.
| |
| 11 | |
| 12 // Should display the bubble UI | |
|
msw
2015/08/13 03:37:23
nit: trailing period here and on the other functio
hcarmona
2015/08/15 02:03:21
Done.
| |
| 13 virtual void Show() = 0; | |
| 14 | |
| 15 // Should hide the bubble UI | |
| 16 virtual void Hide() = 0; | |
| 17 | |
| 18 // Should update the bubble UI's position | |
| 19 virtual void UpdateAnchorPosition() = 0; | |
| 20 | |
| 21 // Should return true if the bubble's contents can be updated. | |
|
msw
2015/08/13 03:37:23
As I mentioned before, I'm not entirely clear on w
hcarmona
2015/08/15 02:03:21
Acknowledged.
| |
| 22 virtual bool CanAcceptUpdate() const = 0; | |
|
msw
2015/08/13 03:37:24
Consider finding common terminology between this a
hcarmona
2015/08/15 02:03:21
Acknowledged.
| |
| 23 }; | |
| 24 | |
| 25 #endif // COMPONENTS_BUBBLE_BUBBLE_UI_H_ | |
| OLD | NEW |