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

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

Issue 2878113002: mus: Embedder can request and observe BeginFrame for embedded client. (Closed)
Patch Set: . 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
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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 // Returns true if there was state needing to be cleaned up. 308 // Returns true if there was state needing to be cleaned up.
309 bool CleanupGestureState(); 309 bool CleanupGestureState();
310 310
311 // Create a CompositorFrameSink for the aura::Window. 311 // Create a CompositorFrameSink for the aura::Window.
312 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink(); 312 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink();
313 313
314 // Get the current cc::SurfaceId. 314 // Get the current cc::SurfaceId.
315 cc::SurfaceId GetSurfaceId() const; 315 cc::SurfaceId GetSurfaceId() const;
316 316
317 // See documentation for WindowPort::SetNeedsBeginFrames().
318 void SetNeedsBeginFrames(
319 bool needs,
320 base::RepeatingClosure callback = base::RepeatingClosure());
321
317 protected: 322 protected:
318 // Deletes (or removes if not owned by parent) all child windows. Intended for 323 // Deletes (or removes if not owned by parent) all child windows. Intended for
319 // use from the destructor. 324 // use from the destructor.
320 void RemoveOrDestroyChildren(); 325 void RemoveOrDestroyChildren();
321 326
322 // Overrides from ui::PropertyHandler 327 // Overrides from ui::PropertyHandler
323 std::unique_ptr<ui::PropertyData> BeforePropertyChange(const void* key) 328 std::unique_ptr<ui::PropertyData> BeforePropertyChange(const void* key)
324 override; 329 override;
325 void AfterPropertyChange(const void* key, 330 void AfterPropertyChange(const void* key,
326 int64_t old_value, 331 int64_t old_value,
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 bool ignore_events_; 487 bool ignore_events_;
483 488
484 base::ObserverList<WindowObserver, true> observers_; 489 base::ObserverList<WindowObserver, true> observers_;
485 490
486 DISALLOW_COPY_AND_ASSIGN(Window); 491 DISALLOW_COPY_AND_ASSIGN(Window);
487 }; 492 };
488 493
489 } // namespace aura 494 } // namespace aura
490 495
491 #endif // UI_AURA_WINDOW_H_ 496 #endif // UI_AURA_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698