| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 if (!initial_launch_finished_) { | 107 if (!initial_launch_finished_) { |
| 108 Send(new AppShimMsg_LaunchApp_Done(result)); | 108 Send(new AppShimMsg_LaunchApp_Done(result)); |
| 109 initial_launch_finished_ = true; | 109 initial_launch_finished_ = true; |
| 110 } | 110 } |
| 111 } | 111 } |
| 112 | 112 |
| 113 void AppShimHost::OnAppClosed() { | 113 void AppShimHost::OnAppClosed() { |
| 114 Close(); | 114 Close(); |
| 115 } | 115 } |
| 116 | 116 |
| 117 void AppShimHost::OnAppHide() { |
| 118 Send(new AppShimMsg_Hide); |
| 119 } |
| 120 |
| 117 void AppShimHost::OnAppRequestUserAttention() { | 121 void AppShimHost::OnAppRequestUserAttention() { |
| 118 Send(new AppShimMsg_RequestUserAttention); | 122 Send(new AppShimMsg_RequestUserAttention); |
| 119 } | 123 } |
| 120 | 124 |
| 121 void AppShimHost::Close() { | 125 void AppShimHost::Close() { |
| 122 DCHECK(CalledOnValidThread()); | 126 DCHECK(CalledOnValidThread()); |
| 123 delete this; | 127 delete this; |
| 124 } | 128 } |
| OLD | NEW |