| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |