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

Side by Side Diff: apps/app_shim/app_shim_handler_mac.h

Issue 14579005: Close all windows when app shim quits. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and rebase Created 7 years, 6 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
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 #ifndef APPS_APP_SHIM_APP_SHIM_HANDLER_MAC_H_ 5 #ifndef APPS_APP_SHIM_APP_SHIM_HANDLER_MAC_H_
6 #define APPS_APP_SHIM_APP_SHIM_HANDLER_MAC_H_ 6 #define APPS_APP_SHIM_APP_SHIM_HANDLER_MAC_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 class Profile; 10 class Profile;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // must return true if successful, or false to indicate back to the shim 48 // must return true if successful, or false to indicate back to the shim
49 // process that it should close. 49 // process that it should close.
50 virtual bool OnShimLaunch(Host* host) = 0; 50 virtual bool OnShimLaunch(Host* host) = 0;
51 51
52 // Invoked by the shim host when the connection to the shim process is closed. 52 // Invoked by the shim host when the connection to the shim process is closed.
53 virtual void OnShimClose(Host* host) = 0; 53 virtual void OnShimClose(Host* host) = 0;
54 54
55 // Invoked by the shim host when the shim process receives a focus event. 55 // Invoked by the shim host when the shim process receives a focus event.
56 virtual void OnShimFocus(Host* host) = 0; 56 virtual void OnShimFocus(Host* host) = 0;
57 57
58 // Invoked by the shim host when the shim process receives a quit event.
59 virtual void OnShimQuit(Host* host) = 0;
60
58 protected: 61 protected:
59 AppShimHandler() {} 62 AppShimHandler() {}
60 virtual ~AppShimHandler() {} 63 virtual ~AppShimHandler() {}
61 }; 64 };
62 65
63 } // namespace apps 66 } // namespace apps
64 67
65 #endif // APPS_APP_SHIM_APP_SHIM_HANDLER_MAC_H_ 68 #endif // APPS_APP_SHIM_APP_SHIM_HANDLER_MAC_H_
OLDNEW
« apps/DEPS ('K') | « apps/DEPS ('k') | apps/app_shim/app_shim_host_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698