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

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

Issue 461303002: [Mac] Bounce app shims when app windows request attention. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 4 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 | « no previous file | apps/app_shim/app_shim_host_mac.h » ('j') | apps/app_shim/app_shim_messages.h » ('J')
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 #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 #include <vector> 9 #include <vector>
10 10
11 #include "apps/app_shim/app_shim_launch.h" 11 #include "apps/app_shim/app_shim_launch.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 13
14 namespace apps { 14 namespace apps {
15 15
16 // Registrar, and interface for services that can handle interactions with OSX 16 // Registrar, and interface for services that can handle interactions with OSX
17 // shim processes. 17 // shim processes.
18 class AppShimHandler { 18 class AppShimHandler {
19 public: 19 public:
20 class Host { 20 class Host {
21 public: 21 public:
22 // Invoked when the app is successfully launched. 22 // Invoked when the app is successfully launched.
23 virtual void OnAppLaunchComplete(AppShimLaunchResult result) = 0; 23 virtual void OnAppLaunchComplete(AppShimLaunchResult result) = 0;
24 // Invoked when the app is closed in the browser process. 24 // Invoked when the app is closed in the browser process.
25 virtual void OnAppClosed() = 0; 25 virtual void OnAppClosed() = 0;
26 // Invoked when the app should be hidden. 26 // Invoked when the app should be hidden.
27 virtual void OnAppHide() = 0; 27 virtual void OnAppHide() = 0;
28 // Invoked when the app is requesting user attention. 28 // Invoked when the app is requesting user attention.
29 virtual void OnAppRequestUserAttention() = 0; 29 virtual void OnAppRequestUserAttention(AppShimAttentionType type) = 0;
30 30
31 // Allows the handler to determine which app this host corresponds to. 31 // Allows the handler to determine which app this host corresponds to.
32 virtual base::FilePath GetProfilePath() const = 0; 32 virtual base::FilePath GetProfilePath() const = 0;
33 virtual std::string GetAppId() const = 0; 33 virtual std::string GetAppId() const = 0;
34 34
35 protected: 35 protected:
36 virtual ~Host() {} 36 virtual ~Host() {}
37 }; 37 };
38 38
39 // Register a handler for an |app_mode_id|. 39 // Register a handler for an |app_mode_id|.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual void OnShimQuit(Host* host) = 0; 87 virtual void OnShimQuit(Host* host) = 0;
88 88
89 protected: 89 protected:
90 AppShimHandler() {} 90 AppShimHandler() {}
91 virtual ~AppShimHandler() {} 91 virtual ~AppShimHandler() {}
92 }; 92 };
93 93
94 } // namespace apps 94 } // namespace apps
95 95
96 #endif // APPS_APP_SHIM_APP_SHIM_HANDLER_MAC_H_ 96 #endif // APPS_APP_SHIM_APP_SHIM_HANDLER_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | apps/app_shim/app_shim_host_mac.h » ('j') | apps/app_shim/app_shim_messages.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698