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

Side by Side Diff: apps/app_shim/app_shim_host_mac.cc

Issue 23514021: Add Hide to app menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Save original key equivalent. Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « apps/app_shim/app_shim_host_mac.h ('k') | apps/app_shim/app_shim_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « apps/app_shim/app_shim_host_mac.h ('k') | apps/app_shim/app_shim_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698