Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 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_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_DELEGATE_H_ | |
| 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_DELEGATE_H_ | |
| 7 | |
| 8 // The delegate for BubbleIconView. | |
| 9 class BubbleIconViewDelegate { | |
|
sky
2013/10/23 14:43:29
There is no point in both subclassing *and* having
hajimehoshi
2013/10/24 11:31:14
Done.
| |
| 10 public: | |
| 11 virtual ~BubbleIconViewDelegate() {} | |
| 12 | |
| 13 // Returns true if a related bubble is already shown. | |
| 14 virtual bool IsBubbleShowing() const = 0; | |
| 15 | |
| 16 // Handles when the command is executed by mouse event. | |
| 17 virtual void OnExecutingByMouse() = 0; | |
|
sky
2013/10/23 14:43:29
Add an enum and a single OnExecute(EXECUTE_SOURCE)
hajimehoshi
2013/10/24 11:31:14
Done.
| |
| 18 | |
| 19 // Handles when the command is executed by key event. | |
| 20 virtual void OnExecutingByKey() = 0; | |
| 21 | |
| 22 // Handles when the command is executed by gesture event. | |
| 23 virtual void OnExecutingByGesture() = 0; | |
| 24 }; | |
| 25 | |
| 26 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_DELEGATE_H_ | |
| OLD | NEW |