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

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

Issue 2868473002: Implement aura::Window::CreateCompositorFrameSink() (Closed)
Patch Set: Address review issues Created 3 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
« no previous file with comments | « ui/aura/test/aura_test_helper.cc ('k') | ui/aura/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_WINDOW_H_ 5 #ifndef UI_AURA_WINDOW_H_
6 #define UI_AURA_WINDOW_H_ 6 #define UI_AURA_WINDOW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 13 matching lines...) Expand all
24 #include "ui/compositor/layer_delegate.h" 24 #include "ui/compositor/layer_delegate.h"
25 #include "ui/compositor/layer_owner.h" 25 #include "ui/compositor/layer_owner.h"
26 #include "ui/events/event_constants.h" 26 #include "ui/events/event_constants.h"
27 #include "ui/events/event_target.h" 27 #include "ui/events/event_target.h"
28 #include "ui/events/event_targeter.h" 28 #include "ui/events/event_targeter.h"
29 #include "ui/events/gestures/gesture_types.h" 29 #include "ui/events/gestures/gesture_types.h"
30 #include "ui/gfx/geometry/rect.h" 30 #include "ui/gfx/geometry/rect.h"
31 #include "ui/gfx/native_widget_types.h" 31 #include "ui/gfx/native_widget_types.h"
32 #include "ui/wm/public/window_types.h" 32 #include "ui/wm/public/window_types.h"
33 33
34 namespace cc {
35 class CompositorFrameSink;
36 }
37
34 namespace display { 38 namespace display {
35 class Display; 39 class Display;
36 } 40 }
37 41
38 namespace gfx { 42 namespace gfx {
39 class Transform; 43 class Transform;
40 } 44 }
41 45
42 namespace ui { 46 namespace ui {
43 class Layer; 47 class Layer;
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 301
298 #if !defined(NDEBUG) 302 #if !defined(NDEBUG)
299 // These methods are useful when debugging. 303 // These methods are useful when debugging.
300 std::string GetDebugInfo() const; 304 std::string GetDebugInfo() const;
301 void PrintWindowHierarchy(int depth) const; 305 void PrintWindowHierarchy(int depth) const;
302 #endif 306 #endif
303 307
304 // Returns true if there was state needing to be cleaned up. 308 // Returns true if there was state needing to be cleaned up.
305 bool CleanupGestureState(); 309 bool CleanupGestureState();
306 310
311 // Create a CompositorFrameSink for the aura::Window.
312 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink();
313
314 // Get the current cc::SurfaceId.
315 cc::SurfaceId GetSurfaceId() const;
316
307 protected: 317 protected:
308 // Deletes (or removes if not owned by parent) all child windows. Intended for 318 // Deletes (or removes if not owned by parent) all child windows. Intended for
309 // use from the destructor. 319 // use from the destructor.
310 void RemoveOrDestroyChildren(); 320 void RemoveOrDestroyChildren();
311 321
312 // Overrides from ui::PropertyHandler 322 // Overrides from ui::PropertyHandler
313 std::unique_ptr<ui::PropertyData> BeforePropertyChange(const void* key) 323 std::unique_ptr<ui::PropertyData> BeforePropertyChange(const void* key)
314 override; 324 override;
315 void AfterPropertyChange(const void* key, 325 void AfterPropertyChange(const void* key,
316 int64_t old_value, 326 int64_t old_value,
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 bool ignore_events_; 482 bool ignore_events_;
473 483
474 base::ObserverList<WindowObserver, true> observers_; 484 base::ObserverList<WindowObserver, true> observers_;
475 485
476 DISALLOW_COPY_AND_ASSIGN(Window); 486 DISALLOW_COPY_AND_ASSIGN(Window);
477 }; 487 };
478 488
479 } // namespace aura 489 } // namespace aura
480 490
481 #endif // UI_AURA_WINDOW_H_ 491 #endif // UI_AURA_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/aura/test/aura_test_helper.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698