Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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_ |
| OLD | NEW |