| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_FRAME_CHROME_FRAME_PLUGIN_H_ | 5 #ifndef CHROME_FRAME_CHROME_FRAME_PLUGIN_H_ |
| 6 #define CHROME_FRAME_CHROME_FRAME_PLUGIN_H_ | 6 #define CHROME_FRAME_CHROME_FRAME_PLUGIN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/win/win_util.h" | 12 #include "base/win/win_util.h" |
| 13 #include "chrome_frame/chrome_frame_automation.h" | 13 #include "chrome_frame/chrome_frame_automation.h" |
| 14 #include "chrome/common/chrome_paths.h" | 14 #include "chrome/common/chrome_paths.h" |
| 15 #include "chrome/common/chrome_paths_internal.h" | 15 #include "chrome/common/chrome_paths_internal.h" |
| 16 #include "chrome_frame/simple_resource_loader.h" | 16 #include "chrome_frame/simple_resource_loader.h" |
| 17 #include "chrome_frame/navigation_constraints.h" | 17 #include "chrome_frame/navigation_constraints.h" |
| 18 #include "chrome_frame/utils.h" | 18 #include "chrome_frame/utils.h" |
| 19 #include "grit/chromium_strings.h" | 19 #include "grit/chromium_strings.h" |
| 20 | 20 |
| 21 #define IDC_ABOUT_CHROME_FRAME 40018 | 21 #define IDC_ABOUT_CHROME_FRAME 40018 |
| 22 | 22 |
| 23 // Helper so that this file doesn't include the messages header. | 23 // Helper so that this file doesn't include the messages header. |
| 24 void ChromeFramePluginGetParamsCoordinates( | 24 void ChromeFramePluginGetParamsCoordinates( |
| 25 const MiniContextMenuParams& params, | 25 const MiniContextMenuParams& params, |
| 26 int* x, | 26 int* x, |
| 27 int* y); | 27 int* y); |
| 28 | 28 |
| 29 // A class to implement common functionality for all types of | 29 // A class to implement common functionality for all types of |
| 30 // plugins: NPAPI. ActiveX and ActiveDoc | 30 // plugins: ActiveX and ActiveDoc |
| 31 template <typename T> | 31 template <typename T> |
| 32 class ChromeFramePlugin | 32 class ChromeFramePlugin |
| 33 : public ChromeFrameDelegateImpl, | 33 : public ChromeFrameDelegateImpl, |
| 34 public NavigationConstraintsImpl { | 34 public NavigationConstraintsImpl { |
| 35 public: | 35 public: |
| 36 ChromeFramePlugin() : ignore_setfocus_(false){ | 36 ChromeFramePlugin() : ignore_setfocus_(false){ |
| 37 } | 37 } |
| 38 ~ChromeFramePlugin() { | 38 ~ChromeFramePlugin() { |
| 39 Uninitialize(); | 39 Uninitialize(); |
| 40 } | 40 } |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 // Url of the containing document. | 259 // Url of the containing document. |
| 260 std::string document_url_; | 260 std::string document_url_; |
| 261 | 261 |
| 262 // We set this flag when we're taking the focus ourselves | 262 // We set this flag when we're taking the focus ourselves |
| 263 // and notifying the host browser that we're doing so. | 263 // and notifying the host browser that we're doing so. |
| 264 // When the flag is not set, we transfer the focus to chrome. | 264 // When the flag is not set, we transfer the focus to chrome. |
| 265 bool ignore_setfocus_; | 265 bool ignore_setfocus_; |
| 266 }; | 266 }; |
| 267 | 267 |
| 268 #endif // CHROME_FRAME_CHROME_FRAME_PLUGIN_H_ | 268 #endif // CHROME_FRAME_CHROME_FRAME_PLUGIN_H_ |
| OLD | NEW |