summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_tab_container_win.cc
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-11-18 18:32:45 +0000
committerBen Murdoch <benm@google.com>2010-11-18 18:38:07 +0000
commit513209b27ff55e2841eac0e4120199c23acce758 (patch)
treeaeba30bb08c5f47c57003544e378a377c297eee6 /chrome/browser/external_tab_container_win.cc
parent164f7496de0fbee436b385a79ead9e3cb81a50c1 (diff)
downloadexternal_chromium-513209b27ff55e2841eac0e4120199c23acce758.zip
external_chromium-513209b27ff55e2841eac0e4120199c23acce758.tar.gz
external_chromium-513209b27ff55e2841eac0e4120199c23acce758.tar.bz2
Merge Chromium at r65505: Initial merge by git.
Change-Id: I31d8f1d8cd33caaf7f47ffa7350aef42d5fbdb45
Diffstat (limited to 'chrome/browser/external_tab_container_win.cc')
-rw-r--r--chrome/browser/external_tab_container_win.cc16
1 files changed, 9 insertions, 7 deletions
diff --git a/chrome/browser/external_tab_container_win.cc b/chrome/browser/external_tab_container_win.cc
index ffa0183..eb336b9 100644
--- a/chrome/browser/external_tab_container_win.cc
+++ b/chrome/browser/external_tab_container_win.cc
@@ -7,10 +7,12 @@
#include <string>
#include "app/l10n_util.h"
+#include "app/win/scoped_prop.h"
+#include "base/debug/trace_event.h"
#include "base/i18n/rtl.h"
#include "base/logging.h"
-#include "base/trace_event.h"
#include "base/win_util.h"
+#include "chrome/app/chrome_command_ids.h"
#include "chrome/app/chrome_dll_resource.h"
#include "chrome/browser/automation/automation_provider.h"
#include "chrome/browser/automation/automation_extension_function.h"
@@ -57,10 +59,10 @@ class ExternalTabPageInfoBubbleView : public PageInfoBubbleView {
bool show_history)
: PageInfoBubbleView(parent_window, profile, url, ssl, show_history),
container_(container) {
- DLOG(INFO) << __FUNCTION__;
+ DVLOG(1) << __FUNCTION__;
}
virtual ~ExternalTabPageInfoBubbleView() {
- DLOG(INFO) << __FUNCTION__;
+ DVLOG(1) << __FUNCTION__;
}
// LinkController methods:
virtual void LinkActivated(views::Link* source, int event_flags) {
@@ -129,9 +131,8 @@ bool ExternalTabContainer::Init(Profile* profile,
// TODO(jcampan): limit focus traversal to contents.
- // We don't ever remove the prop because the lifetime of this object
- // is the same as the lifetime of the window
- SetProp(GetNativeView(), kWindowObjectKey, this);
+ prop_.reset(
+ new app::win::ScopedProp(GetNativeView(), kWindowObjectKey, this));
if (existing_contents) {
tab_contents_ = existing_contents;
@@ -618,7 +619,7 @@ bool ExternalTabContainer::HandleContextMenu(const ContextMenuParams& params) {
POINT screen_pt = { params.x, params.y };
MapWindowPoints(GetNativeView(), HWND_DESKTOP, &screen_pt, 1);
- IPC::ContextMenuParams ipc_params;
+ IPC::MiniContextMenuParams ipc_params;
ipc_params.screen_x = screen_pt.x;
ipc_params.screen_y = screen_pt.y;
ipc_params.link_url = params.link_url;
@@ -793,6 +794,7 @@ LRESULT ExternalTabContainer::OnCreate(LPCREATESTRUCT create_struct) {
}
void ExternalTabContainer::OnDestroy() {
+ prop_.reset();
Uninitialize();
WidgetWin::OnDestroy();
if (browser_.get()) {