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

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

Issue 8570011: Aura: windows in aura should honor Widget::InitParams::accept_events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor changes Created 9 years, 1 month 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 "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, 124 virtual void OnBoundsChanged(const gfx::Rect& old_bounds,
125 const gfx::Rect& new_bounds) OVERRIDE; 125 const gfx::Rect& new_bounds) OVERRIDE;
126 virtual void OnFocus() OVERRIDE; 126 virtual void OnFocus() OVERRIDE;
127 virtual void OnBlur() OVERRIDE; 127 virtual void OnBlur() OVERRIDE;
128 virtual bool OnKeyEvent(aura::KeyEvent* event) OVERRIDE; 128 virtual bool OnKeyEvent(aura::KeyEvent* event) OVERRIDE;
129 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; 129 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE;
130 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; 130 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE;
131 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE; 131 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE;
132 virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE; 132 virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE;
133 virtual bool ShouldActivate(aura::Event* event) OVERRIDE; 133 virtual bool ShouldActivate(aura::Event* event) OVERRIDE;
134 virtual bool ShouldAcceptEvents() OVERRIDE;
134 virtual void OnActivated() OVERRIDE; 135 virtual void OnActivated() OVERRIDE;
135 virtual void OnLostActive() OVERRIDE; 136 virtual void OnLostActive() OVERRIDE;
136 virtual void OnCaptureLost() OVERRIDE; 137 virtual void OnCaptureLost() OVERRIDE;
137 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 138 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
138 virtual void OnWindowDestroying() OVERRIDE; 139 virtual void OnWindowDestroying() OVERRIDE;
139 virtual void OnWindowDestroyed() OVERRIDE; 140 virtual void OnWindowDestroyed() OVERRIDE;
140 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE; 141 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE;
141 142
142 private: 143 private:
143 class DesktopObserverImpl; 144 class DesktopObserverImpl;
144 145
145 internal::NativeWidgetDelegate* delegate_; 146 internal::NativeWidgetDelegate* delegate_;
146 147
147 aura::Window* window_; 148 aura::Window* window_;
148 149
149 // See class documentation for Widget in widget.h for a note about ownership. 150 // See class documentation for Widget in widget.h for a note about ownership.
150 Widget::InitParams::Ownership ownership_; 151 Widget::InitParams::Ownership ownership_;
151 152
152 // The following factory is used for calls to close the NativeWidgetAura 153 // The following factory is used for calls to close the NativeWidgetAura
153 // instance. 154 // instance.
154 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; 155 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_;
155 156
156 // Can we be made active? 157 // Can we be made active?
157 bool can_activate_; 158 bool can_activate_;
158 159
160 // If false, the window will pass all events through to any windows behind it.
161 bool accept_events_;
162
159 gfx::NativeCursor cursor_; 163 gfx::NativeCursor cursor_;
160 164
161 scoped_ptr<TooltipManagerViews> tooltip_manager_; 165 scoped_ptr<TooltipManagerViews> tooltip_manager_;
162 166
163 scoped_ptr<DesktopObserverImpl> desktop_observer_; 167 scoped_ptr<DesktopObserverImpl> desktop_observer_;
164 168
165 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); 169 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura);
166 }; 170 };
167 171
168 } // namespace views 172 } // namespace views
169 173
170 #endif // VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 174 #endif // VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698