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

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

Issue 2804753002: mus: Fix showing guest views in --mash and --mus. (Closed)
Patch Set: tot merge Created 3 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
« no previous file with comments | « ui/aura/mus/window_port_mus.cc ('k') | no next file » | 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_WINDOW_DELEGATE_H_ 5 #ifndef UI_AURA_WINDOW_DELEGATE_H_
6 #define UI_AURA_WINDOW_DELEGATE_H_ 6 #define UI_AURA_WINDOW_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "ui/aura/aura_export.h" 10 #include "ui/aura/aura_export.h"
11 #include "ui/events/event_constants.h" 11 #include "ui/events/event_constants.h"
12 #include "ui/events/event_handler.h" 12 #include "ui/events/event_handler.h"
13 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
14 14
15 namespace cc {
16 class SurfaceInfo;
17 }
18
15 namespace gfx { 19 namespace gfx {
16 class Path; 20 class Path;
17 class Point; 21 class Point;
18 class Rect; 22 class Rect;
19 class Size; 23 class Size;
20 } 24 }
21 25
22 namespace ui { 26 namespace ui {
23 class PaintContext; 27 class PaintContext;
24 } 28 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Called from Window::HitTest to check if the window has a custom hit test 91 // Called from Window::HitTest to check if the window has a custom hit test
88 // mask. It works similar to the views counterparts. That is, if the function 92 // mask. It works similar to the views counterparts. That is, if the function
89 // returns true, GetHitTestMask below will be called to get the mask. 93 // returns true, GetHitTestMask below will be called to get the mask.
90 // Otherwise, Window will hit-test against its bounds. 94 // Otherwise, Window will hit-test against its bounds.
91 virtual bool HasHitTestMask() const = 0; 95 virtual bool HasHitTestMask() const = 0;
92 96
93 // Called from Window::HitTest to retrieve hit test mask when HasHitTestMask 97 // Called from Window::HitTest to retrieve hit test mask when HasHitTestMask
94 // above returns true. 98 // above returns true.
95 virtual void GetHitTestMask(gfx::Path* mask) const = 0; 99 virtual void GetHitTestMask(gfx::Path* mask) const = 0;
96 100
101 virtual void OnWindowSurfaceChanged(const cc::SurfaceInfo& surface_info) {}
102
97 protected: 103 protected:
98 ~WindowDelegate() override {} 104 ~WindowDelegate() override {}
99 }; 105 };
100 106
101 } // namespace aura 107 } // namespace aura
102 108
103 #endif // UI_AURA_WINDOW_DELEGATE_H_ 109 #endif // UI_AURA_WINDOW_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/window_port_mus.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698