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

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

Issue 6976040: Revert 86914 - Move a bunch of functions from Window onto Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 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_gtk.cc ('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')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_
6 #define VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ 6 #define VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "views/widget/native_widget.h" 10 #include "views/widget/native_widget.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual gfx::Rect GetWindowScreenBounds() const OVERRIDE; 59 virtual gfx::Rect GetWindowScreenBounds() const OVERRIDE;
60 virtual gfx::Rect GetClientAreaScreenBounds() const OVERRIDE; 60 virtual gfx::Rect GetClientAreaScreenBounds() const OVERRIDE;
61 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 61 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
62 virtual void SetSize(const gfx::Size& size) OVERRIDE; 62 virtual void SetSize(const gfx::Size& size) OVERRIDE;
63 virtual void MoveAbove(gfx::NativeView native_view) OVERRIDE; 63 virtual void MoveAbove(gfx::NativeView native_view) OVERRIDE;
64 virtual void SetShape(gfx::NativeRegion shape) OVERRIDE; 64 virtual void SetShape(gfx::NativeRegion shape) OVERRIDE;
65 virtual void Close() OVERRIDE; 65 virtual void Close() OVERRIDE;
66 virtual void CloseNow() OVERRIDE; 66 virtual void CloseNow() OVERRIDE;
67 virtual void Show() OVERRIDE; 67 virtual void Show() OVERRIDE;
68 virtual void Hide() OVERRIDE; 68 virtual void Hide() OVERRIDE;
69 virtual void SetOpacity(unsigned char opacity) OVERRIDE;
70 virtual void SetAlwaysOnTop(bool on_top) OVERRIDE;
69 virtual bool IsVisible() const OVERRIDE; 71 virtual bool IsVisible() const OVERRIDE;
70 virtual void Activate() OVERRIDE;
71 virtual void Deactivate() OVERRIDE;
72 virtual bool IsActive() const OVERRIDE; 72 virtual bool IsActive() const OVERRIDE;
73 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE;
74 virtual void Maximize() OVERRIDE;
75 virtual void Minimize() OVERRIDE;
76 virtual bool IsMaximized() const OVERRIDE;
77 virtual bool IsMinimized() const OVERRIDE;
78 virtual void Restore() OVERRIDE;
79 virtual void SetOpacity(unsigned char opacity) OVERRIDE;
80 virtual bool IsAccessibleWidget() const OVERRIDE; 73 virtual bool IsAccessibleWidget() const OVERRIDE;
81 virtual bool ContainsNativeView(gfx::NativeView native_view) const OVERRIDE; 74 virtual bool ContainsNativeView(gfx::NativeView native_view) const OVERRIDE;
82 virtual void RunShellDrag(View* view, 75 virtual void RunShellDrag(View* view,
83 const ui::OSExchangeData& data, 76 const ui::OSExchangeData& data,
84 int operation) OVERRIDE; 77 int operation) OVERRIDE;
85 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; 78 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE;
86 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; 79 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE;
87 80
88 private: 81 private:
89 NativeWidget* GetParentNativeWidget(); 82 NativeWidget* GetParentNativeWidget();
(...skipping 10 matching lines...) Expand all
100 // The following factory is used for calls to close the NativeWidgetViews 93 // The following factory is used for calls to close the NativeWidgetViews
101 // instance. 94 // instance.
102 ScopedRunnableMethodFactory<NativeWidgetViews> close_widget_factory_; 95 ScopedRunnableMethodFactory<NativeWidgetViews> close_widget_factory_;
103 96
104 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews); 97 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews);
105 }; 98 };
106 99
107 } 100 }
108 101
109 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ 102 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_
OLDNEW
« no previous file with comments | « views/widget/native_widget_gtk.cc ('k') | views/widget/native_widget_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698