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

Side by Side Diff: ui/aura/root_window.h

Issue 14466005: Magnifier: Prevent the cursor jumping on HiDPI display. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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_AURA_ROOT_WINDOW_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_H_
6 #define UI_AURA_ROOT_WINDOW_H_ 6 #define UI_AURA_ROOT_WINDOW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 virtual void ReleaseNativeCapture() OVERRIDE; 286 virtual void ReleaseNativeCapture() OVERRIDE;
287 287
288 // Exposes RootWindowHost::QueryMouseLocation() for test purposes. 288 // Exposes RootWindowHost::QueryMouseLocation() for test purposes.
289 bool QueryMouseLocationForTest(gfx::Point* point) const; 289 bool QueryMouseLocationForTest(gfx::Point* point) const;
290 290
291 // Clears internal mouse state (such as mouse ups should be sent to the same 291 // Clears internal mouse state (such as mouse ups should be sent to the same
292 // window that ate mouse downs). 292 // window that ate mouse downs).
293 void ClearMouseHandlers(); 293 void ClearMouseHandlers();
294 294
295 void SetRootWindowTransformer(scoped_ptr<RootWindowTransformer> transformer); 295 void SetRootWindowTransformer(scoped_ptr<RootWindowTransformer> transformer);
296 gfx::Transform GetRootTransform() const;
296 297
297 private: 298 private:
298 FRIEND_TEST_ALL_PREFIXES(RootWindowTest, KeepTranslatedEventInRoot); 299 FRIEND_TEST_ALL_PREFIXES(RootWindowTest, KeepTranslatedEventInRoot);
299 300
300 friend class Window; 301 friend class Window;
301 friend class TestScreen; 302 friend class TestScreen;
302 303
303 // The parameter for OnWindowHidden() to specify why window is hidden. 304 // The parameter for OnWindowHidden() to specify why window is hidden.
304 enum WindowHiddenReason { 305 enum WindowHiddenReason {
305 WINDOW_DESTROYED, // Window is destroyed. 306 WINDOW_DESTROYED, // Window is destroyed.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 gfx::Rect GetInitialHostWindowBounds() const; 398 gfx::Rect GetInitialHostWindowBounds() const;
398 399
399 // Posts a task to send synthesized mouse move event if there 400 // Posts a task to send synthesized mouse move event if there
400 // is no a pending task. 401 // is no a pending task.
401 void PostMouseMoveEventAfterWindowChange(); 402 void PostMouseMoveEventAfterWindowChange();
402 403
403 // Creates and dispatches synthesized mouse move event using the 404 // Creates and dispatches synthesized mouse move event using the
404 // current mouse location. 405 // current mouse location.
405 void SynthesizeMouseMoveEvent(); 406 void SynthesizeMouseMoveEvent();
406 407
407 gfx::Transform GetRootTransform() const;
408 gfx::Transform GetInverseRootTransform() const; 408 gfx::Transform GetInverseRootTransform() const;
409 409
410 scoped_ptr<ui::Compositor> compositor_; 410 scoped_ptr<ui::Compositor> compositor_;
411 411
412 scoped_ptr<RootWindowHost> host_; 412 scoped_ptr<RootWindowHost> host_;
413 413
414 // Used to schedule painting. 414 // Used to schedule painting.
415 base::WeakPtrFactory<RootWindow> schedule_paint_factory_; 415 base::WeakPtrFactory<RootWindow> schedule_paint_factory_;
416 416
417 // Use to post mouse move event. 417 // Use to post mouse move event.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 scoped_ptr<ui::ViewProp> prop_; 457 scoped_ptr<ui::ViewProp> prop_;
458 458
459 scoped_ptr<RootWindowTransformer> transformer_; 459 scoped_ptr<RootWindowTransformer> transformer_;
460 460
461 DISALLOW_COPY_AND_ASSIGN(RootWindow); 461 DISALLOW_COPY_AND_ASSIGN(RootWindow);
462 }; 462 };
463 463
464 } // namespace aura 464 } // namespace aura
465 465
466 #endif // UI_AURA_ROOT_WINDOW_H_ 466 #endif // UI_AURA_ROOT_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698