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

Unified Diff: chrome_frame/event_hooker.cc

Issue 126143005: Remove Chrome Frame code and resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to r244038 Created 6 years, 11 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/event_hooker.h ('k') | chrome_frame/exception_barrier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/event_hooker.cc
diff --git a/chrome_frame/event_hooker.cc b/chrome_frame/event_hooker.cc
deleted file mode 100644
index 839b3adcd20f4005aa1f6b8c5c5bb27f248cc706..0000000000000000000000000000000000000000
--- a/chrome_frame/event_hooker.cc
+++ /dev/null
@@ -1,58 +0,0 @@
-// 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 "chrome_frame/event_hooker.h"
-
-#include <crtdbg.h>
-#include "chrome_frame/bho_loader.h"
-
-EXTERN_C IMAGE_DOS_HEADER __ImageBase;
-
-EventHooker::EventHooker()
-: window_creation_hook_(NULL) {}
-
-EventHooker::~EventHooker() {
- StopHook();
-}
-
-bool EventHooker::StartHook() {
- if ((NULL != window_creation_hook_)) {
- return false;
- }
-
- window_creation_hook_ = SetWinEventHook(EVENT_OBJECT_CREATE,
- EVENT_OBJECT_CREATE,
- reinterpret_cast<HMODULE>(
- &__ImageBase),
- WindowCreationHookProc,
- 0,
- 0,
- WINEVENT_INCONTEXT);
- if (NULL == window_creation_hook_) {
- return false;
- }
- return true;
-}
-
-void EventHooker::StopHook() {
- if (NULL != window_creation_hook_) {
- UnhookWinEvent(window_creation_hook_);
- window_creation_hook_ = NULL;
- }
-}
-
-VOID CALLBACK EventHooker::WindowCreationHookProc(HWINEVENTHOOK hook,
- DWORD event,
- HWND window,
- LONG object_id,
- LONG child_id,
- DWORD event_tid,
- DWORD event_time) {
- _ASSERTE((EVENT_OBJECT_CREATE == event) ||
- (EVENT_OBJECT_PARENTCHANGE == event));
- if (OBJID_WINDOW == object_id) {
- BHOLoader::GetInstance()->OnHookEvent(event, window);
- }
-}
-
« no previous file with comments | « chrome_frame/event_hooker.h ('k') | chrome_frame/exception_barrier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698