| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ASH_SYSTEM_PALETTE_PALETTE_TRAY_H_ | 5 #ifndef ASH_SYSTEM_PALETTE_PALETTE_TRAY_H_ |
| 6 #define ASH_SYSTEM_PALETTE_PALETTE_TRAY_H_ | 6 #define ASH_SYSTEM_PALETTE_PALETTE_TRAY_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 // ui::InputDeviceObserver: | 78 // ui::InputDeviceObserver: |
| 79 void OnTouchscreenDeviceConfigurationChanged() override; | 79 void OnTouchscreenDeviceConfigurationChanged() override; |
| 80 void OnStylusStateChanged(ui::StylusState stylus_state) override; | 80 void OnStylusStateChanged(ui::StylusState stylus_state) override; |
| 81 | 81 |
| 82 // views::TrayBubbleView::Delegate: | 82 // views::TrayBubbleView::Delegate: |
| 83 void BubbleViewDestroyed() override; | 83 void BubbleViewDestroyed() override; |
| 84 void OnMouseEnteredView() override; | 84 void OnMouseEnteredView() override; |
| 85 void OnMouseExitedView() override; | 85 void OnMouseExitedView() override; |
| 86 void RegisterAccelerators(const std::vector<ui::Accelerator>& accelerators, |
| 87 views::TrayBubbleView* tray_bubble_view) override; |
| 88 void UnregisterAllAccelerators( |
| 89 views::TrayBubbleView* tray_bubble_view) override; |
| 86 base::string16 GetAccessibleNameForBubble() override; | 90 base::string16 GetAccessibleNameForBubble() override; |
| 91 bool ShouldEnableExtraKeyboardAccessibility() override; |
| 87 void HideBubble(const views::TrayBubbleView* bubble_view) override; | 92 void HideBubble(const views::TrayBubbleView* bubble_view) override; |
| 88 | 93 |
| 89 // PaletteToolManager::Delegate: | 94 // PaletteToolManager::Delegate: |
| 90 void OnActiveToolChanged() override; | 95 void OnActiveToolChanged() override; |
| 91 aura::Window* GetWindow() override; | 96 aura::Window* GetWindow() override; |
| 92 | 97 |
| 93 // Updates the tray icon from the palette tool manager. | 98 // Updates the tray icon from the palette tool manager. |
| 94 void UpdateTrayIcon(); | 99 void UpdateTrayIcon(); |
| 95 | 100 |
| 96 // Sets the icon to visible if the palette can be used. | 101 // Sets the icon to visible if the palette can be used. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 123 ScopedSessionObserver scoped_session_observer_; | 128 ScopedSessionObserver scoped_session_observer_; |
| 124 | 129 |
| 125 base::WeakPtrFactory<PaletteTray> weak_factory_; | 130 base::WeakPtrFactory<PaletteTray> weak_factory_; |
| 126 | 131 |
| 127 DISALLOW_COPY_AND_ASSIGN(PaletteTray); | 132 DISALLOW_COPY_AND_ASSIGN(PaletteTray); |
| 128 }; | 133 }; |
| 129 | 134 |
| 130 } // namespace ash | 135 } // namespace ash |
| 131 | 136 |
| 132 #endif // ASH_SYSTEM_PALETTE_PALETTE_TRAY_H_ | 137 #endif // ASH_SYSTEM_PALETTE_PALETTE_TRAY_H_ |
| OLD | NEW |