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

Side by Side Diff: ui/views/win/hwnd_message_handler_delegate.h

Issue 1707233002: Reduce the fullscreen window height by 1px on activation loss. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ 5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_
6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_
7 7
8 #include "ui/views/views_export.h" 8 #include "ui/views/views_export.h"
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // implementing them on non-aura windows. http://crbug.com/189112. 87 // implementing them on non-aura windows. http://crbug.com/189112.
88 virtual bool ShouldHandleSystemCommands() const = 0; 88 virtual bool ShouldHandleSystemCommands() const = 0;
89 89
90 // TODO(beng): Investigate migrating these methods to On* prefixes once 90 // TODO(beng): Investigate migrating these methods to On* prefixes once
91 // HWNDMessageHandler is the WindowImpl. 91 // HWNDMessageHandler is the WindowImpl.
92 92
93 // Called when another app was activated. 93 // Called when another app was activated.
94 virtual void HandleAppDeactivated() = 0; 94 virtual void HandleAppDeactivated() = 0;
95 95
96 // Called when the window was activated or deactivated. |active| reflects the 96 // Called when the window was activated or deactivated. |active| reflects the
97 // new state. 97 // new state. |window_gaining_or_losing_activation| is the window gaining or
98 virtual void HandleActivationChanged(bool active) = 0; 98 // losing activation.
99 virtual void HandleActivationChanged(
100 bool active,
101 HWND window_gaining_or_losing_activation) = 0;
99 102
100 // Called when a well known "app command" from the system was performed. 103 // Called when a well known "app command" from the system was performed.
101 // Returns true if the command was handled. 104 // Returns true if the command was handled.
102 virtual bool HandleAppCommand(short command) = 0; 105 virtual bool HandleAppCommand(short command) = 0;
103 106
104 // Called from WM_CANCELMODE. 107 // Called from WM_CANCELMODE.
105 virtual void HandleCancelMode() = 0; 108 virtual void HandleCancelMode() = 0;
106 109
107 // Called when the window has lost mouse capture. 110 // Called when the window has lost mouse capture.
108 virtual void HandleCaptureLost() = 0; 111 virtual void HandleCaptureLost() = 0;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // Called when the window size has finished changing. 231 // Called when the window size has finished changing.
229 virtual void HandleWindowSizeChanged() = 0; 232 virtual void HandleWindowSizeChanged() = 0;
230 233
231 protected: 234 protected:
232 virtual ~HWNDMessageHandlerDelegate() {} 235 virtual ~HWNDMessageHandlerDelegate() {}
233 }; 236 };
234 237
235 } // namespace views 238 } // namespace views
236 239
237 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ 240 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_
OLDNEW
« ui/views/win/hwnd_message_handler.cc ('K') | « ui/views/win/hwnd_message_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698