OLD | NEW |
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/base/win/hidden_window.h" | 5 #include "ui/base/win/hidden_window.h" |
6 | 6 |
7 #include "ui/gfx/win/window_impl.h" | 7 #include "ui/gfx/win/window_impl.h" |
8 | 8 |
9 namespace ui { | 9 namespace ui { |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 } | 35 } |
36 return g_temp_parent; | 36 return g_temp_parent; |
37 } | 37 } |
38 | 38 |
39 private: | 39 private: |
40 // Explicitly do nothing in Close. We do this as some external apps may get a | 40 // Explicitly do nothing in Close. We do this as some external apps may get a |
41 // handle to this window and attempt to close it. | 41 // handle to this window and attempt to close it. |
42 void OnClose() { | 42 void OnClose() { |
43 } | 43 } |
44 | 44 |
45 BEGIN_MSG_MAP_EX(WebContentsViewWin) | 45 CR_BEGIN_MSG_MAP_EX(WebContentsViewWin) |
46 MSG_WM_CLOSE(OnClose) | 46 CR_MSG_WM_CLOSE(OnClose) |
47 END_MSG_MAP() | 47 CR_END_MSG_MAP() |
48 }; | 48 }; |
49 | 49 |
50 } // namespace | 50 } // namespace |
51 | 51 |
52 HWND GetHiddenWindow() { | 52 HWND GetHiddenWindow() { |
53 return TempParent::Get()->hwnd(); | 53 return TempParent::Get()->hwnd(); |
54 } | 54 } |
55 | 55 |
56 } // namespace ui | 56 } // namespace ui |
OLD | NEW |