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

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

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 #include "ui/views/widget/widget.h" 5 #include "ui/views/widget/widget.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 activatable(ACTIVATABLE_DEFAULT), 122 activatable(ACTIVATABLE_DEFAULT),
123 keep_on_top(type == TYPE_MENU || type == TYPE_DRAG), 123 keep_on_top(type == TYPE_MENU || type == TYPE_DRAG),
124 visible_on_all_workspaces(false), 124 visible_on_all_workspaces(false),
125 ownership(NATIVE_WIDGET_OWNS_WIDGET), 125 ownership(NATIVE_WIDGET_OWNS_WIDGET),
126 mirror_origin_in_rtl(false), 126 mirror_origin_in_rtl(false),
127 shadow_type(SHADOW_TYPE_DEFAULT), 127 shadow_type(SHADOW_TYPE_DEFAULT),
128 remove_standard_frame(false), 128 remove_standard_frame(false),
129 use_system_default_icon(false), 129 use_system_default_icon(false),
130 show_state(ui::SHOW_STATE_DEFAULT), 130 show_state(ui::SHOW_STATE_DEFAULT),
131 parent(nullptr), 131 parent(nullptr),
132 workspace(-1),
Elliot Glaysher 2016/04/29 17:58:13 Should the default value by -1? The docs for _NET_
Tom (Use chromium acct) 2016/04/29 19:14:04 I use that as a sentinel because it's reserved. I
danakj 2016/04/29 19:59:06 Have you tested what happens if the chrome window
132 native_widget(nullptr), 133 native_widget(nullptr),
133 desktop_window_tree_host(nullptr), 134 desktop_window_tree_host(nullptr),
134 layer_type(ui::LAYER_TEXTURED), 135 layer_type(ui::LAYER_TEXTURED),
135 context(nullptr), 136 context(nullptr),
136 force_show_in_taskbar(false), 137 force_show_in_taskbar(false),
137 force_software_compositing(false) { 138 force_software_compositing(false) {}
138 }
139 139
140 Widget::InitParams::InitParams(const InitParams& other) = default; 140 Widget::InitParams::InitParams(const InitParams& other) = default;
141 141
142 Widget::InitParams::~InitParams() { 142 Widget::InitParams::~InitParams() {
143 } 143 }
144 144
145 //////////////////////////////////////////////////////////////////////////////// 145 ////////////////////////////////////////////////////////////////////////////////
146 // Widget, public: 146 // Widget, public:
147 147
148 Widget::Widget() 148 Widget::Widget()
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 root->SetSize(new_size); 1103 root->SetSize(new_size);
1104 1104
1105 NotifyCaretBoundsChanged(GetInputMethod()); 1105 NotifyCaretBoundsChanged(GetInputMethod());
1106 SaveWindowPlacementIfInitialized(); 1106 SaveWindowPlacementIfInitialized();
1107 1107
1108 FOR_EACH_OBSERVER(WidgetObserver, observers_, OnWidgetBoundsChanged( 1108 FOR_EACH_OBSERVER(WidgetObserver, observers_, OnWidgetBoundsChanged(
1109 this, 1109 this,
1110 GetWindowBoundsInScreen())); 1110 GetWindowBoundsInScreen()));
1111 } 1111 }
1112 1112
1113 void Widget::OnNativeWidgetWorkspaceChanged(int workspace_id) {}
1114
1113 void Widget::OnNativeWidgetWindowShowStateChanged() { 1115 void Widget::OnNativeWidgetWindowShowStateChanged() {
1114 SaveWindowPlacementIfInitialized(); 1116 SaveWindowPlacementIfInitialized();
1115 } 1117 }
1116 1118
1117 void Widget::OnNativeWidgetBeginUserBoundsChange() { 1119 void Widget::OnNativeWidgetBeginUserBoundsChange() {
1118 widget_delegate_->OnWindowBeginUserBoundsChange(); 1120 widget_delegate_->OnWindowBeginUserBoundsChange();
1119 } 1121 }
1120 1122
1121 void Widget::OnNativeWidgetEndUserBoundsChange() { 1123 void Widget::OnNativeWidgetEndUserBoundsChange() {
1122 widget_delegate_->OnWindowEndUserBoundsChange(); 1124 widget_delegate_->OnWindowEndUserBoundsChange();
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
1478 1480
1479 //////////////////////////////////////////////////////////////////////////////// 1481 ////////////////////////////////////////////////////////////////////////////////
1480 // internal::NativeWidgetPrivate, NativeWidget implementation: 1482 // internal::NativeWidgetPrivate, NativeWidget implementation:
1481 1483
1482 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1484 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1483 return this; 1485 return this;
1484 } 1486 }
1485 1487
1486 } // namespace internal 1488 } // namespace internal
1487 } // namespace views 1489 } // namespace views
OLDNEW
« ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc ('K') | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698