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

Side by Side Diff: chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.h

Issue 2824703006: Add MetalayerMode to the palette. (Closed)
Patch Set: Addressed comments Created 3 years, 8 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_ARC_VOICE_INTERACTION_ARC_VOICE_INTERACTION_FRAM EWORK_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_VOICE_INTERACTION_ARC_VOICE_INTERACTION_FRAM EWORK_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_ARC_VOICE_INTERACTION_ARC_VOICE_INTERACTION_FRAM EWORK_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_ARC_VOICE_INTERACTION_ARC_VOICE_INTERACTION_FRAM EWORK_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 24 matching lines...) Expand all
35 void OnInstanceClosed() override; 35 void OnInstanceClosed() override;
36 36
37 // ui::AcceleratorTarget overrides. 37 // ui::AcceleratorTarget overrides.
38 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; 38 bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
39 bool CanHandleAccelerators() const override; 39 bool CanHandleAccelerators() const override;
40 40
41 // mojom::VoiceInteractionFrameworkHost overrides. 41 // mojom::VoiceInteractionFrameworkHost overrides.
42 void CaptureFocusedWindow( 42 void CaptureFocusedWindow(
43 const CaptureFocusedWindowCallback& callback) override; 43 const CaptureFocusedWindowCallback& callback) override;
44 void CaptureFullscreen(const CaptureFullscreenCallback& callback) override; 44 void CaptureFullscreen(const CaptureFullscreenCallback& callback) override;
45 void OnMetalayerComplete() override;
46
47 bool HasMetalayer();
Luis Héctor Chávez 2017/04/20 16:03:26 maybe IsMetalayerSupported?
Vladislav Kaznacheev 2017/04/20 17:54:55 Renamed here and in PaletteDelegate for consistenc
48 void ShowMetalayer(const base::Closure& done);
49 void HideMetalayer();
45 50
46 // Whether enable-voice-interaction switch is present. 51 // Whether enable-voice-interaction switch is present.
47 static bool IsVoiceInteractionEnabled(); 52 static bool IsVoiceInteractionEnabled();
48 53
54 // For supporting ArcServiceManager::GetService<T>().
55 static const char kArcServiceName[];
56
49 private: 57 private:
58 void SetMetalayerVisibility(bool visible);
59
50 mojo::Binding<mojom::VoiceInteractionFrameworkHost> binding_; 60 mojo::Binding<mojom::VoiceInteractionFrameworkHost> binding_;
61 base::Closure metalayer_closed_callback_;
51 62
52 DISALLOW_COPY_AND_ASSIGN(ArcVoiceInteractionFrameworkService); 63 DISALLOW_COPY_AND_ASSIGN(ArcVoiceInteractionFrameworkService);
53 }; 64 };
54 65
55 } // namespace arc 66 } // namespace arc
56 #endif // CHROME_BROWSER_CHROMEOS_ARC_VOICE_INTERACTION_ARC_VOICE_INTERACTION_F RAMEWORK_SERVICE_H_ 67 #endif // CHROME_BROWSER_CHROMEOS_ARC_VOICE_INTERACTION_ARC_VOICE_INTERACTION_F RAMEWORK_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698