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

Side by Side Diff: ui/ozone/platform/dri/dri_window_delegate_proxy.h

Issue 556073003: [Ozone-DRI] Do proper bounds checks when moving the cursor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@restore-cursor
Patch Set: . Created 6 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_PROXY_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_PROXY_H_
6 #define UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_PROXY_H_ 6 #define UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_PROXY_H_
7 7
8 #include "ui/gfx/geometry/rect.h" 8 #include "ui/gfx/geometry/rect.h"
9 #include "ui/ozone/platform/dri/channel_observer.h" 9 #include "ui/ozone/platform/dri/channel_observer.h"
10 #include "ui/ozone/platform/dri/dri_window_delegate.h" 10 #include "ui/ozone/platform/dri/dri_window_delegate.h"
(...skipping 17 matching lines...) Expand all
28 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 28 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
29 virtual HardwareDisplayController* GetController() OVERRIDE; 29 virtual HardwareDisplayController* GetController() OVERRIDE;
30 virtual void OnBoundsChanged(const gfx::Rect& bounds) OVERRIDE; 30 virtual void OnBoundsChanged(const gfx::Rect& bounds) OVERRIDE;
31 31
32 // ChannelObserver: 32 // ChannelObserver:
33 virtual void OnChannelEstablished() OVERRIDE; 33 virtual void OnChannelEstablished() OVERRIDE;
34 virtual void OnChannelDestroyed() OVERRIDE; 34 virtual void OnChannelDestroyed() OVERRIDE;
35 35
36 private: 36 private:
37 gfx::AcceleratedWidget widget_; 37 gfx::AcceleratedWidget widget_;
38 GpuPlatformSupportHostGbm* sender_; 38 GpuPlatformSupportHostGbm* sender_; // Not owned.
39
40 // Cached state for the window. If the GPU process crashes, this state is used
41 // to update the GPU side when it comes back.
39 gfx::Rect bounds_; 42 gfx::Rect bounds_;
40 43
41 DISALLOW_COPY_AND_ASSIGN(DriWindowDelegateProxy); 44 DISALLOW_COPY_AND_ASSIGN(DriWindowDelegateProxy);
42 }; 45 };
43 46
44 } // namespace ui 47 } // namespace ui
45 48
46 #endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_PROXY_H_ 49 #endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_PROXY_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/dri_window_delegate_manager.cc ('k') | ui/ozone/platform/dri/dri_window_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698