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

Side by Side Diff: ash/system/palette/palette_tray.h

Issue 2895843002: chromeos: Eliminate WmWindow from //ash/system (Closed)
Patch Set: comments Created 3 years, 7 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
« no previous file with comments | « ash/system/palette/palette_tool_manager_unittest.cc ('k') | ash/system/palette/palette_tray.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 void OnMouseExitedView() override; 86 void OnMouseExitedView() override;
87 base::string16 GetAccessibleNameForBubble() override; 87 base::string16 GetAccessibleNameForBubble() override;
88 void OnBeforeBubbleWidgetInit( 88 void OnBeforeBubbleWidgetInit(
89 views::Widget* anchor_widget, 89 views::Widget* anchor_widget,
90 views::Widget* bubble_widget, 90 views::Widget* bubble_widget,
91 views::Widget::InitParams* params) const override; 91 views::Widget::InitParams* params) const override;
92 void HideBubble(const views::TrayBubbleView* bubble_view) override; 92 void HideBubble(const views::TrayBubbleView* bubble_view) override;
93 93
94 // PaletteToolManager::Delegate: 94 // PaletteToolManager::Delegate:
95 void OnActiveToolChanged() override; 95 void OnActiveToolChanged() override;
96 WmWindow* GetWindow() override; 96 aura::Window* GetWindow() override;
97 97
98 // Updates the tray icon from the palette tool manager. 98 // Updates the tray icon from the palette tool manager.
99 void UpdateTrayIcon(); 99 void UpdateTrayIcon();
100 100
101 // Sets the icon to visible if the palette can be used. 101 // Sets the icon to visible if the palette can be used.
102 void UpdateIconVisibility(); 102 void UpdateIconVisibility();
103 103
104 // Called when the palette enabled pref has changed. 104 // Called when the palette enabled pref has changed.
105 void OnPaletteEnabledPrefChanged(bool enabled); 105 void OnPaletteEnabledPrefChanged(bool enabled);
106 106
(...skipping 21 matching lines...) Expand all
128 ScopedSessionObserver scoped_session_observer_; 128 ScopedSessionObserver scoped_session_observer_;
129 129
130 base::WeakPtrFactory<PaletteTray> weak_factory_; 130 base::WeakPtrFactory<PaletteTray> weak_factory_;
131 131
132 DISALLOW_COPY_AND_ASSIGN(PaletteTray); 132 DISALLOW_COPY_AND_ASSIGN(PaletteTray);
133 }; 133 };
134 134
135 } // namespace ash 135 } // namespace ash
136 136
137 #endif // ASH_SYSTEM_PALETTE_PALETTE_TRAY_H_ 137 #endif // ASH_SYSTEM_PALETTE_PALETTE_TRAY_H_
OLDNEW
« no previous file with comments | « ash/system/palette/palette_tool_manager_unittest.cc ('k') | ash/system/palette/palette_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698