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

Unified Diff: chrome/browser/chromeos/arc/voice_interaction/arc_voice_interaction_framework_service.h

Issue 2854543002: Block incognito browser windows for voice interaction. (Closed)
Patch Set: clean up unnecessary includes Created 3 years, 7 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 c7e3323137bc482d1f8348524f54e9ab2cbd1391..66d0e7901272392d50ba7b5911a81b62d8eff93e 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
@@ -14,6 +14,14 @@
#include "mojo/public/cpp/bindings/binding.h"
#include "ui/base/accelerators/accelerator.h"
+namespace gfx {
+class Image;
+} // gfx
+
+namespace ui {
+class LayerTreeOwner;
+} // namespace ui
+
namespace arc {
// This provides voice interaction context (currently screenshots)
@@ -45,6 +53,9 @@ class ArcVoiceInteractionFrameworkService
void OnMetalayerClosed() override;
void SetMetalayerEnabled(bool enabled) override;
+ void EncodeAndReturnImage(const CaptureFullscreenCallback& callback,
+ const gfx::Image& image);
+
bool IsMetalayerSupported();
void ShowMetalayer(const base::Closure& closed);
void HideMetalayer();
@@ -58,6 +69,7 @@ class ArcVoiceInteractionFrameworkService
mojo::Binding<mojom::VoiceInteractionFrameworkHost> binding_;
base::Closure metalayer_closed_callback_;
bool metalayer_enabled_ = false;
+ std::unique_ptr<ui::LayerTreeOwner> old_layer_owner_;
DISALLOW_COPY_AND_ASSIGN(ArcVoiceInteractionFrameworkService);
};

Powered by Google App Engine
This is Rietveld 408576698