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

Unified Diff: chrome/browser/views/bookmark_menu_button.cc

Issue 270067: Converts some uses of native_view to native_window. This is necessitated... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/views/bookmark_menu_button.cc
===================================================================
--- chrome/browser/views/bookmark_menu_button.cc (revision 28706)
+++ chrome/browser/views/bookmark_menu_button.cc (working copy)
@@ -20,7 +20,7 @@
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/view_ids.h"
#include "grit/theme_resources.h"
-#include "views/widget/widget.h"
+#include "views/window/window.h"
BookmarkMenuButton::BookmarkMenuButton(Browser* browser)
: views::MenuButton(NULL, std::wstring(), NULL, false),
@@ -117,14 +117,13 @@
}
void BookmarkMenuButton::RunMenu(views::View* source,
- const gfx::Point& pt,
- gfx::NativeView hwnd) {
- RunMenu(source, pt, hwnd, false);
+ const gfx::Point& pt) {
+ RunMenu(source, pt, GetWindow()->GetNativeWindow(), false);
}
void BookmarkMenuButton::RunMenu(views::View* source,
const gfx::Point& pt,
- gfx::NativeView hwnd,
+ gfx::NativeWindow hwnd,
bool for_drop) {
Profile* profile = browser_->profile();
BookmarkMenuController* menu = new BookmarkMenuController(
@@ -169,5 +168,5 @@
}
void BookmarkMenuButton::ShowDropMenu() {
- RunMenu(NULL, gfx::Point(), GetWidget()->GetNativeView(), true);
+ RunMenu(NULL, gfx::Point(), GetWindow()->GetNativeWindow(), true);
}

Powered by Google App Engine
This is Rietveld 408576698