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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.h
diff --git a/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.h b/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.h
index 015acf8442b3b54f6381649f8f688b249f540750..86869219c89735d19b434674ec10308120fd30a9 100644
--- a/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.h
+++ b/chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.h
@@ -42,12 +42,23 @@ class ArcVoiceInteractionFrameworkService
void CaptureFocusedWindow(
const CaptureFocusedWindowCallback& callback) override;
void CaptureFullscreen(const CaptureFullscreenCallback& callback) override;
+ void OnMetalayerComplete() override;
+
+ 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
+ void ShowMetalayer(const base::Closure& done);
+ void HideMetalayer();
// Whether enable-voice-interaction switch is present.
static bool IsVoiceInteractionEnabled();
+ // For supporting ArcServiceManager::GetService<T>().
+ static const char kArcServiceName[];
+
private:
+ void SetMetalayerVisibility(bool visible);
+
mojo::Binding<mojom::VoiceInteractionFrameworkHost> binding_;
+ base::Closure metalayer_closed_callback_;
DISALLOW_COPY_AND_ASSIGN(ArcVoiceInteractionFrameworkService);
};

Powered by Google App Engine
This is Rietveld 408576698