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

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

Issue 7890054: Adds code for a new Aura shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
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_AURA_H_ 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
6 #define VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 6 #define VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/aura/window_delegate.h" 9 #include "ui/aura/window_delegate.h"
10 #include "views/widget/native_widget_private.h" 10 #include "views/widget/native_widget_private.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 virtual bool IsAccessibleWidget() const OVERRIDE; 102 virtual bool IsAccessibleWidget() const OVERRIDE;
103 virtual void RunShellDrag(View* view, 103 virtual void RunShellDrag(View* view,
104 const ui::OSExchangeData& data, 104 const ui::OSExchangeData& data,
105 int operation) OVERRIDE; 105 int operation) OVERRIDE;
106 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; 106 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE;
107 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; 107 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE;
108 virtual void ClearNativeFocus() OVERRIDE; 108 virtual void ClearNativeFocus() OVERRIDE;
109 virtual void FocusNativeView(gfx::NativeView native_view) OVERRIDE; 109 virtual void FocusNativeView(gfx::NativeView native_view) OVERRIDE;
110 virtual bool ConvertPointFromAncestor( 110 virtual bool ConvertPointFromAncestor(
111 const Widget* ancestor, gfx::Point* point) const OVERRIDE; 111 const Widget* ancestor, gfx::Point* point) const OVERRIDE;
112 virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE;
113 112
114 // Overridden from views::InputMethodDelegate: 113 // Overridden from views::InputMethodDelegate:
115 virtual void DispatchKeyEventPostIME(const KeyEvent& key) OVERRIDE; 114 virtual void DispatchKeyEventPostIME(const KeyEvent& key) OVERRIDE;
116 115
117 // Overridden from aura::WindowDelegate: 116 // Overridden from aura::WindowDelegate:
118 virtual void OnFocus() OVERRIDE; 117 virtual void OnFocus() OVERRIDE;
119 virtual void OnBlur() OVERRIDE; 118 virtual void OnBlur() OVERRIDE;
120 virtual bool OnKeyEvent(aura::KeyEvent* event) OVERRIDE; 119 virtual bool OnKeyEvent(aura::KeyEvent* event) OVERRIDE;
121 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; 120 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE;
122 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE; 121 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE;
123 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 122 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
124 virtual void OnWindowDestroying() OVERRIDE; 123 virtual void OnWindowDestroying() OVERRIDE;
125 virtual void OnWindowDestroyed() OVERRIDE; 124 virtual void OnWindowDestroyed() OVERRIDE;
126 125
127 private: 126 private:
128 internal::NativeWidgetDelegate* delegate_; 127 internal::NativeWidgetDelegate* delegate_;
129 128
130 aura::Window* window_; 129 aura::Window* window_;
131 130
132 // See class documentation for Widget in widget.h for a note about ownership. 131 // See class documentation for Widget in widget.h for a note about ownership.
133 Widget::InitParams::Ownership ownership_; 132 Widget::InitParams::Ownership ownership_;
134 133
135 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); 134 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura);
136 }; 135 };
137 136
138 } // namespace views 137 } // namespace views
139 138
140 #endif // VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 139 #endif // VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698