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

Side by Side Diff: chrome/browser/ui/ash/palette_delegate_chromeos.h

Issue 2311393004: Laser tool blocks events from propagating. (Closed)
Patch Set: Nit. 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
« no previous file with comments | « ash/shell/shell_delegate_impl.cc ('k') | chrome/browser/ui/ash/palette_delegate_chromeos.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CHROME_BROWSER_UI_ASH_PALETTE_DELEGATE_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_PALETTE_DELEGATE_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_ASH_PALETTE_DELEGATE_CHROMEOS_H_ 6 #define CHROME_BROWSER_UI_ASH_PALETTE_DELEGATE_CHROMEOS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ash/common/palette_delegate.h" 10 #include "ash/common/palette_delegate.h"
(...skipping 20 matching lines...) Expand all
31 public ui::InputDeviceEventObserver, 31 public ui::InputDeviceEventObserver,
32 public ash::SessionStateObserver, 32 public ash::SessionStateObserver,
33 public content::NotificationObserver { 33 public content::NotificationObserver {
34 public: 34 public:
35 // Attempts to create a palette delegate. This will return null if the palette 35 // Attempts to create a palette delegate. This will return null if the palette
36 // feature is not enabled. 36 // feature is not enabled.
37 static std::unique_ptr<PaletteDelegateChromeOS> Create(); 37 static std::unique_ptr<PaletteDelegateChromeOS> Create();
38 38
39 ~PaletteDelegateChromeOS() override; 39 ~PaletteDelegateChromeOS() override;
40 40
41 void OnLaserPointerEnabled() override;
42 void OnLaserPointerDisabled() override;
43
44 private: 41 private:
45 PaletteDelegateChromeOS(); 42 PaletteDelegateChromeOS();
46 43
47 class ProxyScreenshotDelegate; 44 class ProxyScreenshotDelegate;
48 45
49 // ash::PaletteDelegate: 46 // ash::PaletteDelegate:
50 std::unique_ptr<EnableListenerSubscription> AddPaletteEnableListener( 47 std::unique_ptr<EnableListenerSubscription> AddPaletteEnableListener(
51 const EnableListener& on_state_changed) override; 48 const EnableListener& on_state_changed) override;
52 void CreateNote() override; 49 void CreateNote() override;
53 bool HasNoteApp() override; 50 bool HasNoteApp() override;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 content::NotificationRegistrar registrar_; 86 content::NotificationRegistrar registrar_;
90 87
91 base::WeakPtrFactory<PaletteDelegateChromeOS> weak_factory_; 88 base::WeakPtrFactory<PaletteDelegateChromeOS> weak_factory_;
92 89
93 DISALLOW_COPY_AND_ASSIGN(PaletteDelegateChromeOS); 90 DISALLOW_COPY_AND_ASSIGN(PaletteDelegateChromeOS);
94 }; 91 };
95 92
96 } // namespace chromeos 93 } // namespace chromeos
97 94
98 #endif // CHROME_BROWSER_UI_ASH_PALETTE_DELEGATE_CHROMEOS_H_ 95 #endif // CHROME_BROWSER_UI_ASH_PALETTE_DELEGATE_CHROMEOS_H_
OLDNEW
« no previous file with comments | « ash/shell/shell_delegate_impl.cc ('k') | chrome/browser/ui/ash/palette_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698