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

Unified Diff: chrome_frame/event_hooker.h

Issue 3158036: Add a helper process to Chrome Frame to allow for non-administrative installs... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/chrome_frame_launcher.gyp ('k') | chrome_frame/event_hooker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/event_hooker.h
===================================================================
--- chrome_frame/event_hooker.h (revision 0)
+++ chrome_frame/event_hooker.h (revision 0)
@@ -0,0 +1,36 @@
+// Copyright (c) 2010 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.
+
+#include <windows.h>
+
+#ifndef CHROME_FRAME_EVENT_HOOKER_H_
+#define CHROME_FRAME_EVENT_HOOKER_H_
+
+class EventHooker {
+ public:
+ EventHooker();
+ ~EventHooker();
+
+ // Call this to install event hooks that will trigger on window creation
+ // and reparenting. Returns true if the hooks are successfully installed,
+ // false otherwise.
+ bool StartHook();
+
+ // Call this to remove the event hooks that are installed by StartHook().
+ void StopHook();
+
+ // The callback invoked in response to an event registered for in StartHook().
+ static VOID CALLBACK WindowCreationHookProc(HWINEVENTHOOK hook,
+ DWORD event,
+ HWND window,
+ LONG object_id,
+ LONG child_id,
+ DWORD event_tid,
+ DWORD event_time);
+
+ private:
+ HWINEVENTHOOK window_creation_hook_;
+};
+
+#endif // CHROME_FRAME_EVENT_HOOKER_H_
Property changes on: chrome_frame\event_hooker.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome_frame/chrome_frame_launcher.gyp ('k') | chrome_frame/event_hooker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698