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

Side by Side Diff: chrome/browser/chromeos/display/output_protection_delegate.h

Issue 2540313002: Split //ui/display and create //ui/display/manager. (Closed)
Patch Set: Cleanup export header. Created 4 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CHROMEOS_DISPLAY_OUTPUT_PROTECTION_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DISPLAY_OUTPUT_PROTECTION_DELEGATE_H_
6 #define CHROME_BROWSER_CHROMEOS_DISPLAY_OUTPUT_PROTECTION_DELEGATE_H_ 6 #define CHROME_BROWSER_CHROMEOS_DISPLAY_OUTPUT_PROTECTION_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "ui/aura/window.h" 11 #include "ui/aura/window.h"
12 #include "ui/aura/window_observer.h" 12 #include "ui/aura/window_observer.h"
13 #include "ui/display/chromeos/display_configurator.h" 13 #include "ui/display/manager/chromeos/display_configurator.h"
14 14
15 namespace chromeos { 15 namespace chromeos {
16 16
17 // A class to query output protection status and/or enable output protection. 17 // A class to query output protection status and/or enable output protection.
18 // All methods except constructor should be invoked in UI thread. 18 // All methods except constructor should be invoked in UI thread.
19 class OutputProtectionDelegate : public aura::WindowObserver { 19 class OutputProtectionDelegate : public aura::WindowObserver {
20 public: 20 public:
21 typedef base::Callback<void(bool /* success */, 21 typedef base::Callback<void(bool /* success */,
22 uint32_t /* link_mask */, 22 uint32_t /* link_mask */,
23 uint32_t /* protection_mask*/)> 23 uint32_t /* protection_mask*/)>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // The last desired method mask. Will enable this mask on new display if 60 // The last desired method mask. Will enable this mask on new display if
61 // renderer changes display. 61 // renderer changes display.
62 uint32_t desired_method_mask_; 62 uint32_t desired_method_mask_;
63 63
64 base::WeakPtrFactory<OutputProtectionDelegate> weak_ptr_factory_; 64 base::WeakPtrFactory<OutputProtectionDelegate> weak_ptr_factory_;
65 }; 65 };
66 66
67 } // namespace chromeos 67 } // namespace chromeos
68 68
69 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_OUTPUT_PROTECTION_DELEGATE_H_ 69 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_OUTPUT_PROTECTION_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698