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

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

Issue 15102004: Merge 199249 "Magnifier: Prevent the cursor jumping on HiDPI dis..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1500/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
« no previous file with comments | « ash/magnifier/magnification_controller_unittest.cc ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 virtual void ReleaseNativeCapture() OVERRIDE; 281 virtual void ReleaseNativeCapture() OVERRIDE;
282 282
283 // Exposes RootWindowHost::QueryMouseLocation() for test purposes. 283 // Exposes RootWindowHost::QueryMouseLocation() for test purposes.
284 bool QueryMouseLocationForTest(gfx::Point* point) const; 284 bool QueryMouseLocationForTest(gfx::Point* point) const;
285 285
286 // Clears internal mouse state (such as mouse ups should be sent to the same 286 // Clears internal mouse state (such as mouse ups should be sent to the same
287 // window that ate mouse downs). 287 // window that ate mouse downs).
288 void ClearMouseHandlers(); 288 void ClearMouseHandlers();
289 289
290 void SetRootWindowTransformer(scoped_ptr<RootWindowTransformer> transformer); 290 void SetRootWindowTransformer(scoped_ptr<RootWindowTransformer> transformer);
291 gfx::Transform GetRootTransform() const;
291 292
292 private: 293 private:
293 FRIEND_TEST_ALL_PREFIXES(RootWindowTest, KeepTranslatedEventInRoot); 294 FRIEND_TEST_ALL_PREFIXES(RootWindowTest, KeepTranslatedEventInRoot);
294 295
295 friend class Window; 296 friend class Window;
296 friend class TestScreen; 297 friend class TestScreen;
297 298
298 // The parameter for OnWindowHidden() to specify why window is hidden. 299 // The parameter for OnWindowHidden() to specify why window is hidden.
299 enum WindowHiddenReason { 300 enum WindowHiddenReason {
300 WINDOW_DESTROYED, // Window is destroyed. 301 WINDOW_DESTROYED, // Window is destroyed.
(...skipping 96 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
« no previous file with comments | « ash/magnifier/magnification_controller_unittest.cc ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698