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

Unified Diff: ui/views/widget/desktop_aura/desktop_root_window_host_x11.h

Issue 136093007: Widget::ShouldUseNativeFrame is now meaningful on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/widget/desktop_aura/desktop_root_window_host_x11.h
diff --git a/ui/views/widget/desktop_aura/desktop_root_window_host_x11.h b/ui/views/widget/desktop_aura/desktop_root_window_host_x11.h
index f38b638ed3c471a700c060cbcebd6690ed3361bc..c7184b2642fe9cd6c6b9b75603f01fc2f0c30f82 100644
--- a/ui/views/widget/desktop_aura/desktop_root_window_host_x11.h
+++ b/ui/views/widget/desktop_aura/desktop_root_window_host_x11.h
@@ -116,7 +116,8 @@ class VIEWS_EXPORT DesktopWindowTreeHostX11 :
Widget::MoveLoopEscapeBehavior escape_behavior) OVERRIDE;
virtual void EndMoveLoop() OVERRIDE;
virtual void SetVisibilityChangedAnimationsEnabled(bool value) OVERRIDE;
- virtual bool ShouldUseNativeFrame() OVERRIDE;
+ virtual bool ShouldUseNativeFrame() const OVERRIDE;
+ virtual bool ShouldWindowContentsBeTransparent() const OVERRIDE;
virtual void FrameTypeChanged() OVERRIDE;
virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE;
virtual void SetFullscreen(bool fullscreen) OVERRIDE;
@@ -178,6 +179,9 @@ private:
// Checks if the window manager has set a specific state.
bool HasWMSpecProperty(const char* property) const;
+ // Sets whether the window's borders are provided by the window manager.
+ void SetUseNativeFrame(bool use_native_frame);
+
// Called when another DRWHL takes capture, or when capture is released
// entirely.
void OnCaptureReleased();
@@ -247,6 +251,9 @@ private:
// True if the window should stay on top of most other windows.
bool is_always_on_top_;
+ // True if the window has title-bar / borders provided by the window manager.
+ bool use_native_frame_;
+
// We are owned by the RootWindow, but we have to have a back pointer to it.
aura::RootWindow* root_window_;

Powered by Google App Engine
This is Rietveld 408576698