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

Unified Diff: ui/views/widget/desktop_capture_client.h

Issue 10910144: Get mouse events to work with win aura, and make the combobox function in the views examples app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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: ui/views/widget/desktop_capture_client.h
===================================================================
--- ui/views/widget/desktop_capture_client.h (revision 0)
+++ ui/views/widget/desktop_capture_client.h (revision 0)
@@ -0,0 +1,32 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_VIEWS_WIDGET_DESKTOP_CAPTURE_CLIENT_H_
+#define UI_VIEWS_WIDGET_DESKTOP_CAPTURE_CLIENT_H_
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "ui/aura/client/capture_client.h"
+
+namespace views {
+
+class DesktopCaptureClient : public aura::client::CaptureClient {
+ public:
+ DesktopCaptureClient();
+ virtual ~DesktopCaptureClient();
+
+ private:
+ // Overridden from aura::client::CaptureClient:
+ virtual void SetCapture(aura::Window* window) OVERRIDE;
+ virtual void ReleaseCapture(aura::Window* window) OVERRIDE;
+ virtual aura::Window* GetCaptureWindow() OVERRIDE;
+
+ aura::Window* capture_window_;
+
+ DISALLOW_COPY_AND_ASSIGN(DesktopCaptureClient);
+};
+
+} // namespace views
+
+#endif // UI_VIEWS_WIDGET_DESKTOP_CAPTURE_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698