forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-shell: Introduce a ShellRendererMainDelegate.
It may be necessary to create custom filters/observers etc. on the renderer side in athena (e.g., for virtual keyboard support). So allow athena to install a delegate to be created in the renderer process. The delegate is notified when the RenderThread is initialized, or when new RenderViews are created. BUG=380215 R=jamescook@chromium.org, oshima@chromium.org Review URL: https://codereview.chromium.org/331323008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277922 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
sadrul@chromium.org
committed
Jun 18, 2014
1 parent
75ef0cd
commit 618b9f7
Showing
8 changed files
with
79 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright 2014 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef APPS_SHELL_RENDERER_SHELL_RENDERER_MAIN_DELEGATE_H_ | ||
#define APPS_SHELL_RENDERER_SHELL_RENDERER_MAIN_DELEGATE_H_ | ||
|
||
namespace content { | ||
class RenderThread; | ||
class RenderView; | ||
} | ||
|
||
namespace apps { | ||
|
||
class ShellRendererMainDelegate { | ||
public: | ||
virtual ~ShellRendererMainDelegate() {} | ||
|
||
// Called when |thread| is started, after the extensions subsystem has been | ||
// initialized for |thread|. | ||
virtual void OnThreadStarted(content::RenderThread* thread) = 0; | ||
|
||
// Called for each RenderView created in the renderer process, after the | ||
// extension related code has been initialized for the view. | ||
virtual void OnViewCreated(content::RenderView* view) = 0; | ||
}; | ||
|
||
} // namespace apps | ||
|
||
#endif // APPS_SHELL_RENDERER_SHELL_RENDERER_MAIN_DELEGATE_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters