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

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

Issue 2361563002: chromeos: Laser tool blocks events from propagating. (Closed)
Patch Set: Created 4 years, 2 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 19 matching lines...) Expand all
30 virtual std::unique_ptr<EnableListenerSubscription> AddPaletteEnableListener( 30 virtual std::unique_ptr<EnableListenerSubscription> AddPaletteEnableListener(
31 const EnableListener& on_state_changed) = 0; 31 const EnableListener& on_state_changed) = 0;
32 32
33 // Create a new note. 33 // Create a new note.
34 virtual void CreateNote() = 0; 34 virtual void CreateNote() = 0;
35 35
36 // Returns true if there is a note-taking application available. 36 // Returns true if there is a note-taking application available.
37 virtual bool HasNoteApp() = 0; 37 virtual bool HasNoteApp() = 0;
38 38
39 // Enables or disables the partial magnifier. 39 // Enables or disables the partial magnifier.
40 // TODO(sammiequon): This can be removed from the delegate and put in wmshell.
41 // See http://crbug.com/647031.
40 virtual void SetPartialMagnifierState(bool enabled) = 0; 42 virtual void SetPartialMagnifierState(bool enabled) = 0;
41 43
42 // Set callback that is run when a stylus is inserted or removed. 44 // Set callback that is run when a stylus is inserted or removed.
43 virtual void SetStylusStateChangedCallback( 45 virtual void SetStylusStateChangedCallback(
44 const OnStylusStateChangedCallback& on_stylus_state_changed) = 0; 46 const OnStylusStateChangedCallback& on_stylus_state_changed) = 0;
45 47
46 // Returns true if the palette should be automatically opened on an eject 48 // Returns true if the palette should be automatically opened on an eject
47 // event. 49 // event.
48 virtual bool ShouldAutoOpenPalette() = 0; 50 virtual bool ShouldAutoOpenPalette() = 0;
49 51
50 // Returns true if the palette should be displayed. This is the one-shot 52 // Returns true if the palette should be displayed. This is the one-shot
51 // equivalent to AddPaletteEnableListener. 53 // equivalent to AddPaletteEnableListener.
52 virtual bool ShouldShowPalette() = 0; 54 virtual bool ShouldShowPalette() = 0;
53 55
54 // Take a screenshot of the entire window. 56 // Take a screenshot of the entire window.
55 virtual void TakeScreenshot() = 0; 57 virtual void TakeScreenshot() = 0;
56 58
57 // Take a screenshot of a user-selected region. |done| is called when the 59 // 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 60 // partial screenshot session has finished; a screenshot may or may not have
59 // been taken. 61 // been taken.
60 virtual void TakePartialScreenshot(const base::Closure& done) = 0; 62 virtual void TakePartialScreenshot(const base::Closure& done) = 0;
61 63
62 // Cancels any active partial screenshot session. 64 // Cancels any active partial screenshot session.
63 virtual void CancelPartialScreenshot() = 0; 65 virtual void CancelPartialScreenshot() = 0;
64 66
65 // Called when the laser pointer has been enabled or disabled.
66 virtual void OnLaserPointerEnabled() = 0;
67 virtual void OnLaserPointerDisabled() = 0;
68
69 private: 67 private:
70 DISALLOW_ASSIGN(PaletteDelegate); 68 DISALLOW_ASSIGN(PaletteDelegate);
71 }; 69 };
72 70
73 } // namespace ash 71 } // namespace ash
74 72
75 #endif // ASH_COMMON_PALETTE_DELEGATE_H_ 73 #endif // ASH_COMMON_PALETTE_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/aura/wm_shell_aura.cc ('k') | ash/common/system/chromeos/palette/tools/laser_pointer_mode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698