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

Side by Side Diff: views/widget/widget.h

Issue 8351042: Gets disable inactive frame rendering to work correctly for aura. This (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaks Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 VIEWS_WIDGET_WIDGET_H_ 5 #ifndef VIEWS_WIDGET_WIDGET_H_
6 #define VIEWS_WIDGET_WIDGET_H_ 6 #define VIEWS_WIDGET_WIDGET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <stack> 9 #include <stack>
10 10
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 // Activates the widget, assuming it already exists and is visible. 335 // Activates the widget, assuming it already exists and is visible.
336 void Activate(); 336 void Activate();
337 337
338 // Deactivates the widget, making the next window in the Z order the active 338 // Deactivates the widget, making the next window in the Z order the active
339 // window. 339 // window.
340 void Deactivate(); 340 void Deactivate();
341 341
342 // Returns whether the Widget is the currently active window. 342 // Returns whether the Widget is the currently active window.
343 virtual bool IsActive() const; 343 virtual bool IsActive() const;
344 344
345 // Prevents the window from being rendered as deactivated the next time it is. 345 // Prevents the window from being rendered as deactivated. This state is
346 // This state is reset automatically as soon as the window becomes activated 346 // reset automatically as soon as the window becomes activated again. There is
347 // again. There is no ability to control the state through this API as this 347 // no ability to control the state through this API as this leads to sync
348 // leads to sync problems. 348 // problems.
349 void DisableInactiveRendering(); 349 void DisableInactiveRendering();
350 350
351 // Sets the widget to be on top of all other widgets in the windowing system. 351 // Sets the widget to be on top of all other widgets in the windowing system.
352 void SetAlwaysOnTop(bool on_top); 352 void SetAlwaysOnTop(bool on_top);
353 353
354 // Maximizes/minimizes/restores the window. 354 // Maximizes/minimizes/restores the window.
355 void Maximize(); 355 void Maximize();
356 void Minimize(); 356 void Minimize();
357 void Restore(); 357 void Restore();
358 358
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 // TODO(beng): Remove NativeWidgetGtk's dependence on the mouse state flags. 626 // TODO(beng): Remove NativeWidgetGtk's dependence on the mouse state flags.
627 friend class NativeWidgetGtk; 627 friend class NativeWidgetGtk;
628 628
629 friend class NativeTextfieldViewsTest; 629 friend class NativeTextfieldViewsTest;
630 friend class NativeComboboxViewsTest; 630 friend class NativeComboboxViewsTest;
631 friend class ScopedEvent; 631 friend class ScopedEvent;
632 632
633 // Returns whether capture should be released on mouse release. 633 // Returns whether capture should be released on mouse release.
634 virtual bool ShouldReleaseCaptureOnMouseReleased() const; 634 virtual bool ShouldReleaseCaptureOnMouseReleased() const;
635 635
636 // Sets the value of |disable_inactive_rendering_|. If the value changes,
637 // both the NonClientView and WidgetDelegate are notified.
638 void SetInactiveRenderingDisabled(bool value);
639
636 // Persists the window's restored position and "show" state using the 640 // Persists the window's restored position and "show" state using the
637 // window delegate. 641 // window delegate.
638 void SaveWindowPlacement(); 642 void SaveWindowPlacement();
639 643
640 // Sizes and positions the window just after it is created. 644 // Sizes and positions the window just after it is created.
641 void SetInitialBounds(const gfx::Rect& bounds); 645 void SetInitialBounds(const gfx::Rect& bounds);
642 646
643 // Returns the bounds and "show" state from the delegate. Returns true if 647 // Returns the bounds and "show" state from the delegate. Returns true if
644 // the delegate wants to use a specified bounds. 648 // the delegate wants to use a specified bounds.
645 bool GetSavedWindowPlacement(gfx::Rect* bounds, 649 bool GetSavedWindowPlacement(gfx::Rect* bounds,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 // duplicate move events even though the mouse hasn't moved. 740 // duplicate move events even though the mouse hasn't moved.
737 bool last_mouse_event_was_move_; 741 bool last_mouse_event_was_move_;
738 gfx::Point last_mouse_event_position_; 742 gfx::Point last_mouse_event_position_;
739 743
740 DISALLOW_COPY_AND_ASSIGN(Widget); 744 DISALLOW_COPY_AND_ASSIGN(Widget);
741 }; 745 };
742 746
743 } // namespace views 747 } // namespace views
744 748
745 #endif // VIEWS_WIDGET_WIDGET_H_ 749 #endif // VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698