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

Side by Side Diff: ceee/ie/plugin/bho/tab_events_funnel.h

Issue 4989002: Firing event to broker without worker thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Funnel of Chrome Extension Tab Events. 5 // Funnel of Chrome Extension Tab Events.
6 6
7 #ifndef CEEE_IE_PLUGIN_BHO_TAB_EVENTS_FUNNEL_H_ 7 #ifndef CEEE_IE_PLUGIN_BHO_TAB_EVENTS_FUNNEL_H_
8 #define CEEE_IE_PLUGIN_BHO_TAB_EVENTS_FUNNEL_H_ 8 #define CEEE_IE_PLUGIN_BHO_TAB_EVENTS_FUNNEL_H_
9 9
10 #include <ocidl.h> // for READYSTATE 10 #include <ocidl.h> // for READYSTATE
11 11
12 #include "ceee/ie/plugin/bho/events_funnel.h" 12 #include "ceee/ie/plugin/bho/events_funnel.h"
13 13
14 // Implements a set of methods to send tab related events to the Broker. 14 // Implements a set of methods to send tab related events to the Broker.
15 class TabEventsFunnel : public EventsFunnel { 15 class TabEventsFunnel : public EventsFunnel {
16 public: 16 public:
17 TabEventsFunnel() : EventsFunnel(true) {} 17 TabEventsFunnel() {}
18 18
19 // Sends the tabs.onMoved event to the Broker. 19 // Sends the tabs.onMoved event to the Broker.
20 // @param tab_handle The HWND of the tab that moved. 20 // @param tab_handle The HWND of the tab that moved.
21 // @param window_id The identifier of the window containing the moving tab. 21 // @param window_id The identifier of the window containing the moving tab.
22 // @param from_index The index from which the tab moved away. 22 // @param from_index The index from which the tab moved away.
23 // @param to_index The index where the tab moved to. 23 // @param to_index The index where the tab moved to.
24 virtual HRESULT OnMoved(HWND tab_handle, int window_id, 24 virtual HRESULT OnMoved(HWND tab_handle, int window_id,
25 int from_index, int to_index); 25 int from_index, int to_index);
26 26
27 // Sends the tabs.onRemoved event to the Broker. 27 // Sends the tabs.onRemoved event to the Broker.
(...skipping 24 matching lines...) Expand all
52 // and will assert if used. 52 // and will assert if used.
53 // @param tab_handle The HWND of the tab to unmap. 53 // @param tab_handle The HWND of the tab to unmap.
54 // @param tab_id The id of the tab to unmap. 54 // @param tab_id The id of the tab to unmap.
55 virtual HRESULT OnTabUnmapped(HWND tab_handle, int tab_id); 55 virtual HRESULT OnTabUnmapped(HWND tab_handle, int tab_id);
56 56
57 private: 57 private:
58 DISALLOW_COPY_AND_ASSIGN(TabEventsFunnel); 58 DISALLOW_COPY_AND_ASSIGN(TabEventsFunnel);
59 }; 59 };
60 60
61 #endif // CEEE_IE_PLUGIN_BHO_TAB_EVENTS_FUNNEL_H_ 61 #endif // CEEE_IE_PLUGIN_BHO_TAB_EVENTS_FUNNEL_H_
OLDNEW
« no previous file with comments | « ceee/ie/plugin/bho/mediumtest_browser_helper_object.cc ('k') | ceee/ie/plugin/bho/web_progress_notifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698