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

Side by Side Diff: ui/views/widget/desktop_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: more vector use fixes 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_DESKTOP_NATIVE_WIDGET_AURA_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_AURA_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_AURA_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_AURA_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "ui/aura/client/activation_delegate.h" 9 #include "ui/aura/client/activation_delegate.h"
10 #include "ui/aura/window_delegate.h" 10 #include "ui/aura/window_delegate.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 virtual void RunShellDrag(View* view, 110 virtual void RunShellDrag(View* view,
111 const ui::OSExchangeData& data, 111 const ui::OSExchangeData& data,
112 const gfx::Point& location, 112 const gfx::Point& location,
113 int operation) OVERRIDE; 113 int operation) OVERRIDE;
114 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; 114 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE;
115 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; 115 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE;
116 virtual void ClearNativeFocus() OVERRIDE; 116 virtual void ClearNativeFocus() OVERRIDE;
117 virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE; 117 virtual gfx::Rect GetWorkAreaBoundsInScreen() const OVERRIDE;
118 virtual void SetInactiveRenderingDisabled(bool value) OVERRIDE; 118 virtual void SetInactiveRenderingDisabled(bool value) OVERRIDE;
119 virtual Widget::MoveLoopResult RunMoveLoop( 119 virtual Widget::MoveLoopResult RunMoveLoop(
120 const gfx::Point& drag_offset) OVERRIDE; 120 const gfx::Vector2d& drag_offset) OVERRIDE;
121 virtual void EndMoveLoop() OVERRIDE; 121 virtual void EndMoveLoop() OVERRIDE;
122 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE; 122 virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE;
123 123
124 // Overridden from aura::WindowDelegate: 124 // Overridden from aura::WindowDelegate:
125 virtual gfx::Size GetMinimumSize() const OVERRIDE; 125 virtual gfx::Size GetMinimumSize() const OVERRIDE;
126 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, 126 virtual void OnBoundsChanged(const gfx::Rect& old_bounds,
127 const gfx::Rect& new_bounds) OVERRIDE; 127 const gfx::Rect& new_bounds) OVERRIDE;
128 virtual void OnFocus(aura::Window* old_focused_window) OVERRIDE; 128 virtual void OnFocus(aura::Window* old_focused_window) OVERRIDE;
129 virtual void OnBlur() OVERRIDE; 129 virtual void OnBlur() OVERRIDE;
130 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; 130 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 internal::NativeWidgetDelegate* native_widget_delegate_; 177 internal::NativeWidgetDelegate* native_widget_delegate_;
178 178
179 scoped_ptr<aura::client::StackingClient> stacking_client_; 179 scoped_ptr<aura::client::StackingClient> stacking_client_;
180 180
181 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); 181 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura);
182 }; 182 };
183 183
184 } // namespace views 184 } // namespace views
185 185
186 #endif // UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_AURA_H_ 186 #endif // UI_VIEWS_WIDGET_DESKTOP_NATIVE_WIDGET_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698