OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "apps/app_shim/app_shim_host_mac.h" | 5 #include "apps/app_shim/app_shim_host_mac.h" |
6 | 6 |
7 #include "apps/app_shim/app_shim_handler_mac.h" | 7 #include "apps/app_shim/app_shim_handler_mac.h" |
8 #include "apps/app_shim/app_shim_messages.h" | 8 #include "apps/app_shim/app_shim_messages.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 } | 113 } |
114 | 114 |
115 void AppShimHost::OnAppClosed() { | 115 void AppShimHost::OnAppClosed() { |
116 Close(); | 116 Close(); |
117 } | 117 } |
118 | 118 |
119 void AppShimHost::OnAppHide() { | 119 void AppShimHost::OnAppHide() { |
120 Send(new AppShimMsg_Hide); | 120 Send(new AppShimMsg_Hide); |
121 } | 121 } |
122 | 122 |
123 void AppShimHost::OnAppRequestUserAttention() { | 123 void AppShimHost::OnAppRequestUserAttention(apps::AppShimAttentionType type) { |
124 Send(new AppShimMsg_RequestUserAttention); | 124 Send(new AppShimMsg_RequestUserAttention(type)); |
125 } | 125 } |
126 | 126 |
127 void AppShimHost::Close() { | 127 void AppShimHost::Close() { |
128 DCHECK(CalledOnValidThread()); | 128 DCHECK(CalledOnValidThread()); |
129 delete this; | 129 delete this; |
130 } | 130 } |
OLD | NEW |