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

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

Issue 6286013: V2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/native_widget_listener.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget.h
===================================================================
--- ui/views/widget/native_widget.h (revision 0)
+++ ui/views/widget/native_widget.h (revision 0)
@@ -0,0 +1,69 @@
+// Copyright (c) 2011 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_NATIVE_WIDGET_H_
+#define UI_VIEWS_WIDGET_NATIVE_WIDGET_H_
+
+#include "ui/views/native_types.h"
+
+namespace gfx{
+class Path;
+class Rect;
+}
+
+namespace ui {
+namespace internal {
+class NativeWidgetListener;
+}
+class View;
+class Widget;
+
+////////////////////////////////////////////////////////////////////////////////
+// NativeWidget interface
+//
+// An interface implemented by an object that encapsulates rendering, event
+// handling and widget management provided by an underlying native toolkit.
+//
+class NativeWidget {
+ public:
+ virtual ~NativeWidget() {}
+
+ static NativeWidget* CreateNativeWidget(
+ internal::NativeWidgetListener* listener);
+
+ // See Widget for documentation and notes.
+ virtual void InitWithNativeViewParent(gfx::NativeView parent,
+ const gfx::Rect& bounds) = 0;
+ virtual void InitWithWidgetParent(Widget* parent,
+ const gfx::Rect& bounds) = 0;
+ virtual void InitWithViewParent(View* parent, const gfx::Rect& bounds) = 0;
+ virtual void SetNativeWindowProperty(const char* name, void* value) = 0;
+ virtual void* GetNativeWindowProperty(const char* name) const = 0;
+ virtual gfx::Rect GetWindowScreenBounds() const = 0;
+ virtual gfx::Rect GetClientAreaScreenBounds() const = 0;
+ virtual void SetBounds(const gfx::Rect& bounds) = 0;
+ virtual void SetShape(const gfx::Path& shape) = 0;
+ virtual gfx::NativeView GetNativeView() const = 0;
+ virtual void Show() = 0;
+ virtual void Hide() = 0;
+ virtual void Close() = 0;
+ virtual void MoveAbove(NativeWidget* other) = 0;
+ virtual void SetAlwaysOnTop(bool always_on_top) = 0;
+ virtual bool IsVisible() const = 0;
+ virtual bool IsActive() const = 0;
+
+ virtual void SetMouseCapture() = 0;
+ virtual void ReleaseMouseCapture() = 0;
+ virtual bool HasMouseCapture() const = 0;
+ virtual bool ShouldReleaseCaptureOnMouseReleased() const = 0;
+
+ virtual void Invalidate() = 0;
+ virtual void InvalidateRect(const gfx::Rect& invalid_rect) = 0;
+ virtual void Paint() = 0;
+};
+
+} // namespace ui
+
+#endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_H_
+
Property changes on: ui\views\widget\native_widget.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/native_widget_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698