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

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

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove SizeOfVector Created 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
7 7
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "ui/aura/client/activation_delegate.h" 10 #include "ui/aura/client/activation_delegate.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 virtual void RunShellDrag(View* view, 115 virtual void RunShellDrag(View* view,
116 const ui::OSExchangeData& data, 116 const ui::OSExchangeData& data,
117 const gfx::Point& location, 117 const gfx::Point& location,
118 int operation) OVERRIDE; 118 int operation) OVERRIDE;
119 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; 119 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE;
120 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; 120 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE;
121 virtual void ClearNativeFocus() OVERRIDE; 121 virtual void ClearNativeFocus() OVERRIDE;
122 virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE; 122 virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE;
123 virtual void SetInactiveRenderingDisabled(bool value) OVERRIDE; 123 virtual void SetInactiveRenderingDisabled(bool value) OVERRIDE;
124 virtual Widget::MoveLoopResult RunMoveLoop( 124 virtual Widget::MoveLoopResult RunMoveLoop(
125 const gfx::Point& drag_offset) OVERRIDE; 125 const gfx::Vector2d& drag_offset) OVERRIDE;
126 virtual void EndMoveLoop() OVERRIDE; 126 virtual void EndMoveLoop() OVERRIDE;
127 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; 127 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE;
128 128
129 // Overridden from views::InputMethodDelegate: 129 // Overridden from views::InputMethodDelegate:
130 virtual void DispatchKeyEventPostIME(const ui::KeyEvent& key) OVERRIDE; 130 virtual void DispatchKeyEventPostIME(const ui::KeyEvent& key) OVERRIDE;
131 131
132 // Overridden from aura::WindowDelegate: 132 // Overridden from aura::WindowDelegate:
133 virtual gfx::Size GetMinimumSize() const OVERRIDE; 133 virtual gfx::Size GetMinimumSize() const OVERRIDE;
134 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, 134 virtual void OnBoundsChanged(const gfx::Rect& old_bounds,
135 const gfx::Rect& new_bounds) OVERRIDE; 135 const gfx::Rect& new_bounds) OVERRIDE;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 scoped_ptr<DropHelper> drop_helper_; 209 scoped_ptr<DropHelper> drop_helper_;
210 int last_drop_operation_; 210 int last_drop_operation_;
211 211
212 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); 212 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura);
213 }; 213 };
214 214
215 } // namespace views 215 } // namespace views
216 216
217 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 217 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698