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

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

Issue 1927203003: Add support for X11 workspaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed GetSavedWindowWorkspace, put command line code into browser_frame.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_NATIVE_WIDGET_DELEGATE_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/events/event_constants.h" 10 #include "ui/events/event_constants.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 virtual gfx::Size GetMaximumSize() const = 0; 90 virtual gfx::Size GetMaximumSize() const = 0;
91 91
92 // Called when the NativeWidget changed position. 92 // Called when the NativeWidget changed position.
93 virtual void OnNativeWidgetMove() = 0; 93 virtual void OnNativeWidgetMove() = 0;
94 94
95 // Called when the NativeWidget changed size to |new_size|. 95 // Called when the NativeWidget changed size to |new_size|.
96 // This may happen at the same time as OnNativeWidgetWindowShowStateChanged, 96 // This may happen at the same time as OnNativeWidgetWindowShowStateChanged,
97 // e.g. maximize. 97 // e.g. maximize.
98 virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) = 0; 98 virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) = 0;
99 99
100 // Called when NativeWidget changed workspaces.
101 virtual void OnNativeWidgetWorkspaceChanged() = 0;
102
100 // Called when the NativeWidget changes its window state. 103 // Called when the NativeWidget changes its window state.
101 // This may happen at the same time as OnNativeWidgetSizeChanged, e.g. 104 // This may happen at the same time as OnNativeWidgetSizeChanged, e.g.
102 // maximize. 105 // maximize.
103 virtual void OnNativeWidgetWindowShowStateChanged() = 0; 106 virtual void OnNativeWidgetWindowShowStateChanged() = 0;
104 107
105 // Called when the user begins/ends to change the bounds of the window. 108 // Called when the user begins/ends to change the bounds of the window.
106 virtual void OnNativeWidgetBeginUserBoundsChange() = 0; 109 virtual void OnNativeWidgetBeginUserBoundsChange() = 0;
107 virtual void OnNativeWidgetEndUserBoundsChange() = 0; 110 virtual void OnNativeWidgetEndUserBoundsChange() = 0;
108 111
109 // Returns true if the delegate has a FocusManager. 112 // Returns true if the delegate has a FocusManager.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // later. Returns true if the initial focus has been set or the window should 148 // later. Returns true if the initial focus has been set or the window should
146 // not set the initial focus, or false if the caller should set the initial 149 // not set the initial focus, or false if the caller should set the initial
147 // focus (if any). 150 // focus (if any).
148 virtual bool SetInitialFocus(ui::WindowShowState show_state) = 0; 151 virtual bool SetInitialFocus(ui::WindowShowState show_state) = 0;
149 }; 152 };
150 153
151 } // namespace internal 154 } // namespace internal
152 } // namespace views 155 } // namespace views
153 156
154 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ 157 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698