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

Side by Side Diff: ash/common/palette_delegate.h

Issue 2311393004: Laser tool blocks events from propagating. (Closed)
Patch Set: Fixed patch set 1 errors. Created 4 years, 3 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
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_COMMON_PALETTE_DELEGATE_H_ 5 #ifndef ASH_COMMON_PALETTE_DELEGATE_H_
6 #define ASH_COMMON_PALETTE_DELEGATE_H_ 6 #define ASH_COMMON_PALETTE_DELEGATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/callback_list.h" 10 #include "base/callback_list.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual void TakeScreenshot() = 0; 55 virtual void TakeScreenshot() = 0;
56 56
57 // Take a screenshot of a user-selected region. |done| is called when the 57 // Take a screenshot of a user-selected region. |done| is called when the
58 // partial screenshot session has finished; a screenshot may or may not have 58 // partial screenshot session has finished; a screenshot may or may not have
59 // been taken. 59 // been taken.
60 virtual void TakePartialScreenshot(const base::Closure& done) = 0; 60 virtual void TakePartialScreenshot(const base::Closure& done) = 0;
61 61
62 // Cancels any active partial screenshot session. 62 // Cancels any active partial screenshot session.
63 virtual void CancelPartialScreenshot() = 0; 63 virtual void CancelPartialScreenshot() = 0;
64 64
65 // Called when the laser pointer has been enabled or disabled. 65 // Enables or disables the laser pointer.
66 virtual void OnLaserPointerEnabled() = 0; 66 virtual void SetLaserPointerState(bool enabled) = 0;
James Cook 2016/09/14 17:52:25 Instead of delegating this call via //ash/common -
sammiequon 2016/09/14 21:44:08 Done.
67 virtual void OnLaserPointerDisabled() = 0;
68 67
69 private: 68 private:
70 DISALLOW_ASSIGN(PaletteDelegate); 69 DISALLOW_ASSIGN(PaletteDelegate);
71 }; 70 };
72 71
73 } // namespace ash 72 } // namespace ash
74 73
75 #endif // ASH_COMMON_PALETTE_DELEGATE_H_ 74 #endif // ASH_COMMON_PALETTE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698