summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/info_bubble.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-12 19:29:06 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-12 19:29:06 +0000
commited8b1b805203b6ccdb5517d0c30cc689dde65e98 (patch)
tree88b8d0c2e552f291fbb01e8aa660806597e9d3fc /chrome/browser/views/info_bubble.cc
parent71994cd0877f3528079b1154d46d90801e515292 (diff)
downloadchromium_src-ed8b1b805203b6ccdb5517d0c30cc689dde65e98.zip
chromium_src-ed8b1b805203b6ccdb5517d0c30cc689dde65e98.tar.gz
chromium_src-ed8b1b805203b6ccdb5517d0c30cc689dde65e98.tar.bz2
Make Widget return a gfx::NativeView instead of a HWND.
Review URL: http://codereview.chromium.org/43124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11562 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/info_bubble.cc')
-rw-r--r--chrome/browser/views/info_bubble.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/views/info_bubble.cc b/chrome/browser/views/info_bubble.cc
index 8dbf410..861191a 100644
--- a/chrome/browser/views/info_bubble.cc
+++ b/chrome/browser/views/info_bubble.cc
@@ -140,13 +140,13 @@ void InfoBubble::Init(HWND parent_hwnd,
// Register the Escape accelerator for closing.
views::FocusManager* focus_manager =
- views::FocusManager::GetFocusManager(GetHWND());
+ views::FocusManager::GetFocusManager(GetNativeView());
focus_manager->RegisterAccelerator(views::Accelerator(VK_ESCAPE, false,
false, false),
this);
// Set initial alpha value of the layered window.
- SetLayeredWindowAttributes(GetHWND(),
+ SetLayeredWindowAttributes(GetNativeView(),
RGB(0xFF, 0xFF, 0xFF),
kMinimumAlpha,
LWA_ALPHA);
@@ -164,7 +164,7 @@ void InfoBubble::AnimationProgressed(const Animation* animation) {
(fade_animation_->GetCurrentValue() * (255.0 - kMinimumAlpha) +
kMinimumAlpha));
- SetLayeredWindowAttributes(GetHWND(),
+ SetLayeredWindowAttributes(GetNativeView(),
RGB(0xFF, 0xFF, 0xFF),
alpha,
LWA_ALPHA);