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

Side by Side Diff: views/widget/native_widget_views.h

Issue 6990048: Add NativeWidgetViews. This is a stub implementation that mostly just defers to its parent Native... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/widget/native_widget.h ('k') | views/widget/native_widget_views.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
6 #define VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
7 #pragma once
8
9 #include "base/message_loop.h"
10 #include "views/widget/native_widget.h"
11
12 namespace views {
13
14 class NativeWidgetViews : public NativeWidget {
15 public:
16 explicit NativeWidgetViews(internal::NativeWidgetDelegate* delegate);
17 virtual ~NativeWidgetViews();
18
19 // TODO(beng): remove.
20 View* GetView();
21
22 private:
23 class NativeWidgetView;
24
25 // Overridden from NativeWidget:
26 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE;
27 virtual Widget* GetWidget() OVERRIDE;
28 virtual const Widget* GetWidget() const OVERRIDE;
29 virtual gfx::NativeView GetNativeView() const OVERRIDE;
30 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE;
31 virtual Window* GetContainingWindow() OVERRIDE;
32 virtual const Window* GetContainingWindow() const OVERRIDE;
33 virtual void ViewRemoved(View* view) OVERRIDE;
34 virtual void SetNativeWindowProperty(const char* name, void* value) OVERRIDE;
35 virtual void* GetNativeWindowProperty(const char* name) OVERRIDE;
36 virtual TooltipManager* GetTooltipManager() const OVERRIDE;
37 virtual bool IsScreenReaderActive() const OVERRIDE;
38 virtual void SendNativeAccessibilityEvent(
39 View* view,
40 ui::AccessibilityTypes::Event event_type) OVERRIDE;
41 virtual void SetMouseCapture() OVERRIDE;
42 virtual void ReleaseMouseCapture() OVERRIDE;
43 virtual bool HasMouseCapture() const OVERRIDE;
44 virtual bool IsMouseButtonDown() const OVERRIDE;
45 virtual InputMethod* GetInputMethodNative() OVERRIDE;
46 virtual void ReplaceInputMethod(InputMethod* input_method) OVERRIDE;
47 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
48 virtual gfx::Rect GetWindowScreenBounds() const OVERRIDE;
49 virtual gfx::Rect GetClientAreaScreenBounds() const OVERRIDE;
50 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
51 virtual void SetSize(const gfx::Size& size) OVERRIDE;
52 virtual void MoveAbove(gfx::NativeView native_view) OVERRIDE;
53 virtual void SetShape(gfx::NativeRegion shape) OVERRIDE;
54 virtual void Close() OVERRIDE;
55 virtual void CloseNow() OVERRIDE;
56 virtual void Show() OVERRIDE;
57 virtual void Hide() OVERRIDE;
58 virtual void SetOpacity(unsigned char opacity) OVERRIDE;
59 virtual void SetAlwaysOnTop(bool on_top) OVERRIDE;
60 virtual bool IsVisible() const OVERRIDE;
61 virtual bool IsActive() const OVERRIDE;
62 virtual bool IsAccessibleWidget() const OVERRIDE;
63 virtual bool ContainsNativeView(gfx::NativeView native_view) const OVERRIDE;
64 virtual void RunShellDrag(View* view,
65 const ui::OSExchangeData& data,
66 int operation) OVERRIDE;
67 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE;
68 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE;
69
70 NativeWidget* GetParentNativeWidget();
71 const NativeWidget* GetParentNativeWidget() const;
72
73 internal::NativeWidgetDelegate* delegate_;
74
75 NativeWidgetView* view_;
76
77 // The following factory is used for calls to close the NativeWidgetViews
78 // instance.
79 ScopedRunnableMethodFactory<NativeWidgetViews> close_widget_factory_;
80
81 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews);
82 };
83
84 }
85
86 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
OLDNEW
« no previous file with comments | « views/widget/native_widget.h ('k') | views/widget/native_widget_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698