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

Side by Side Diff: ui/platform_window/win/win_window.h

Issue 1139673003: Make Mandoline shut down cleanly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix crash in surfaces if surfaceimpl outlives the app, and a double delete in browser Created 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ 5 #ifndef UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_
6 #define UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ 6 #define UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/gfx/win/window_impl.h" 9 #include "ui/gfx/win/window_impl.h"
10 #include "ui/platform_window/platform_window.h" 10 #include "ui/platform_window/platform_window.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 LRESULT OnCaptureChanged(UINT message, WPARAM w_param, LPARAM l_param); 64 LRESULT OnCaptureChanged(UINT message, WPARAM w_param, LPARAM l_param);
65 LRESULT OnKeyEvent(UINT message, WPARAM w_param, LPARAM l_param); 65 LRESULT OnKeyEvent(UINT message, WPARAM w_param, LPARAM l_param);
66 LRESULT OnNCActivate(UINT message, WPARAM w_param, LPARAM l_param); 66 LRESULT OnNCActivate(UINT message, WPARAM w_param, LPARAM l_param);
67 void OnClose(); 67 void OnClose();
68 LRESULT OnCreate(CREATESTRUCT* create_struct); 68 LRESULT OnCreate(CREATESTRUCT* create_struct);
69 void OnDestroy(); 69 void OnDestroy();
70 void OnPaint(HDC); 70 void OnPaint(HDC);
71 void OnWindowPosChanged(WINDOWPOS* window_pos); 71 void OnWindowPosChanged(WINDOWPOS* window_pos);
72 72
73 PlatformWindowDelegate* delegate_; 73 PlatformWindowDelegate* delegate_;
74 bool destroyed_;
74 75
75 DISALLOW_COPY_AND_ASSIGN(WinWindow); 76 DISALLOW_COPY_AND_ASSIGN(WinWindow);
76 }; 77 };
77 78
78 namespace test { 79 namespace test {
79 80
80 // Set true to let WindowTreeHostWin use a popup window 81 // Set true to let WindowTreeHostWin use a popup window
81 // with no frame/title so that the window size and test's 82 // with no frame/title so that the window size and test's
82 // expectations matches. 83 // expectations matches.
83 WIN_WINDOW_EXPORT void SetUsePopupAsRootWindowForTest(bool use); 84 WIN_WINDOW_EXPORT void SetUsePopupAsRootWindowForTest(bool use);
84 85
85 } // namespace test 86 } // namespace test
86 87
87 } // namespace ui 88 } // namespace ui
88 89
89 #endif // UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_ 90 #endif // UI_PLATFORM_WINDOW_WIN_WIN_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698