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

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

Issue 1927203003: Add support for X11 workspaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverted ui/views/widget/desktop_aura/x11_desktop_handler.cc Created 4 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_VIEWS_WIDGET_WIDGET_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_
6 #define UI_VIEWS_WIDGET_WIDGET_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <stack> 10 #include <stack>
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // Whether the widget should be maximized or minimized. 242 // Whether the widget should be maximized or minimized.
243 ui::WindowShowState show_state; 243 ui::WindowShowState show_state;
244 gfx::NativeView parent; 244 gfx::NativeView parent;
245 // Used only by mus and is necessitated by mus not being a NativeView. 245 // Used only by mus and is necessitated by mus not being a NativeView.
246 mus::Window* parent_mus = nullptr; 246 mus::Window* parent_mus = nullptr;
247 // Specifies the initial bounds of the Widget. Default is empty, which means 247 // Specifies the initial bounds of the Widget. Default is empty, which means
248 // the NativeWidget may specify a default size. If the parent is specified, 248 // the NativeWidget may specify a default size. If the parent is specified,
249 // |bounds| is in the parent's coordinate system. If the parent is not 249 // |bounds| is in the parent's coordinate system. If the parent is not
250 // specified, it's in screen's global coordinate system. 250 // specified, it's in screen's global coordinate system.
251 gfx::Rect bounds; 251 gfx::Rect bounds;
252 // The initial workspace of the Widget. Default is -1, which means the
253 // current workspace.
254 int workspace;
252 // When set, this value is used as the Widget's NativeWidget implementation. 255 // When set, this value is used as the Widget's NativeWidget implementation.
253 // The Widget will not construct a default one. Default is NULL. 256 // The Widget will not construct a default one. Default is NULL.
254 NativeWidget* native_widget; 257 NativeWidget* native_widget;
255 // Aura-only. Provides a DesktopWindowTreeHost implementation to use instead 258 // Aura-only. Provides a DesktopWindowTreeHost implementation to use instead
256 // of the default one. 259 // of the default one.
257 // TODO(beng): Figure out if there's a better way to expose this, e.g. get 260 // TODO(beng): Figure out if there's a better way to expose this, e.g. get
258 // rid of NW subclasses and do this all via message handling. 261 // rid of NW subclasses and do this all via message handling.
259 DesktopWindowTreeHost* desktop_window_tree_host; 262 DesktopWindowTreeHost* desktop_window_tree_host;
260 // Only used by NativeWidgetAura. Specifies the type of layer for the 263 // Only used by NativeWidgetAura. Specifies the type of layer for the
261 // aura::Window. Default is ui::LAYER_TEXTURED. 264 // aura::Window. Default is ui::LAYER_TEXTURED.
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 void OnNativeBlur() override; 783 void OnNativeBlur() override;
781 void OnNativeWidgetVisibilityChanging(bool visible) override; 784 void OnNativeWidgetVisibilityChanging(bool visible) override;
782 void OnNativeWidgetVisibilityChanged(bool visible) override; 785 void OnNativeWidgetVisibilityChanged(bool visible) override;
783 void OnNativeWidgetCreated(bool desktop_widget) override; 786 void OnNativeWidgetCreated(bool desktop_widget) override;
784 void OnNativeWidgetDestroying() override; 787 void OnNativeWidgetDestroying() override;
785 void OnNativeWidgetDestroyed() override; 788 void OnNativeWidgetDestroyed() override;
786 gfx::Size GetMinimumSize() const override; 789 gfx::Size GetMinimumSize() const override;
787 gfx::Size GetMaximumSize() const override; 790 gfx::Size GetMaximumSize() const override;
788 void OnNativeWidgetMove() override; 791 void OnNativeWidgetMove() override;
789 void OnNativeWidgetSizeChanged(const gfx::Size& new_size) override; 792 void OnNativeWidgetSizeChanged(const gfx::Size& new_size) override;
793 void OnNativeWidgetWorkspaceChanged(int workspace_id) override;
790 void OnNativeWidgetWindowShowStateChanged() override; 794 void OnNativeWidgetWindowShowStateChanged() override;
791 void OnNativeWidgetBeginUserBoundsChange() override; 795 void OnNativeWidgetBeginUserBoundsChange() override;
792 void OnNativeWidgetEndUserBoundsChange() override; 796 void OnNativeWidgetEndUserBoundsChange() override;
793 bool HasFocusManager() const override; 797 bool HasFocusManager() const override;
794 void OnNativeWidgetPaint(const ui::PaintContext& context) override; 798 void OnNativeWidgetPaint(const ui::PaintContext& context) override;
795 int GetNonClientComponent(const gfx::Point& point) override; 799 int GetNonClientComponent(const gfx::Point& point) override;
796 void OnKeyEvent(ui::KeyEvent* event) override; 800 void OnKeyEvent(ui::KeyEvent* event) override;
797 void OnMouseEvent(ui::MouseEvent* event) override; 801 void OnMouseEvent(ui::MouseEvent* event) override;
798 void OnMouseCaptureLost() override; 802 void OnMouseCaptureLost() override;
799 void OnScrollEvent(ui::ScrollEvent* event) override; 803 void OnScrollEvent(ui::ScrollEvent* event) override;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 bool movement_disabled_; 965 bool movement_disabled_;
962 966
963 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 967 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
964 968
965 DISALLOW_COPY_AND_ASSIGN(Widget); 969 DISALLOW_COPY_AND_ASSIGN(Widget);
966 }; 970 };
967 971
968 } // namespace views 972 } // namespace views
969 973
970 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 974 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698