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

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

Issue 9960042: Refactor screen/monitor so that gfx::Screen returns monitor object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 8 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) 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 #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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 protected: 162 protected:
163 internal::NativeWidgetDelegate* delegate() { return delegate_; } 163 internal::NativeWidgetDelegate* delegate() { return delegate_; }
164 164
165 private: 165 private:
166 class ActiveWindowObserver; 166 class ActiveWindowObserver;
167 167
168 void SetInitialFocus(); 168 void SetInitialFocus();
169 169
170 #if defined(ENABLE_DIP) 170 #if defined(ENABLE_DIP)
171 // Returns the monitor in which this widget is placed. 171 // Returns the scale factor of the monitor in which this widget is placed.
172 aura::Monitor* GetMonitor() const; 172 float GetMonitorScaleFactor() const;
173 173
174 // Utility functions that convert point/size/rect between 174 // Utility functions that convert point/size/rect between
175 // the monitor's coordinate system and the widget's coordinate system. 175 // the monitor's coordinate system and the widget's coordinate system.
176 // TODO(oshima): Remove these once aura supports DIP coordinate system.
176 gfx::Point ConvertPointFromMonitor(const gfx::Point& point) const; 177 gfx::Point ConvertPointFromMonitor(const gfx::Point& point) const;
177 gfx::Size ConvertSizeFromMonitor(const gfx::Size& size) const; 178 gfx::Size ConvertSizeFromMonitor(const gfx::Size& size) const;
178 gfx::Rect ConvertRectFromMonitor(const gfx::Rect& rect) const; 179 gfx::Rect ConvertRectFromMonitor(const gfx::Rect& rect) const;
179 gfx::Size ConvertSizeToMonitor(const gfx::Size& size) const; 180 gfx::Size ConvertSizeToMonitor(const gfx::Size& size) const;
180 gfx::Rect ConvertRectToMonitor(const gfx::Rect& rect) const; 181 gfx::Rect ConvertRectToMonitor(const gfx::Rect& rect) const;
181 #endif 182 #endif
182 183
183 internal::NativeWidgetDelegate* delegate_; 184 internal::NativeWidgetDelegate* delegate_;
184 185
185 scoped_ptr<NativeWidgetHelperAura> desktop_helper_; 186 scoped_ptr<NativeWidgetHelperAura> desktop_helper_;
(...skipping 21 matching lines...) Expand all
207 208
208 scoped_ptr<DropHelper> drop_helper_; 209 scoped_ptr<DropHelper> drop_helper_;
209 int last_drop_operation_; 210 int last_drop_operation_;
210 211
211 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); 212 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura);
212 }; 213 };
213 214
214 } // namespace views 215 } // namespace views
215 216
216 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 217 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « ui/views/touchui/touch_selection_controller_impl.cc ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698