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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 10538039: Renamed BrowserWindow::GetNativeHandle() to GetNativeWindow() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update copyrights Created 8 years, 6 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/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 9f517bfc47420b2889dd38a097d416cc85965e5e..d75e260a58d80239e572250dcb10a7b30c0db142 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -601,7 +601,7 @@ bool BrowserView::IsAlwaysOnTop() const {
return false;
}
-gfx::NativeWindow BrowserView::GetNativeHandle() {
+gfx::NativeWindow BrowserView::GetNativeWindow() {
return GetWidget()->GetTopLevelWidget()->GetNativeWindow();
}
@@ -1108,18 +1108,18 @@ DownloadShelf* BrowserView::GetDownloadShelf() {
}
void BrowserView::ConfirmBrowserCloseWithPendingDownloads() {
- DownloadInProgressDialogView::Show(browser_.get(), GetNativeHandle());
+ DownloadInProgressDialogView::Show(browser_.get(), GetNativeWindow());
}
void BrowserView::ShowCreateWebAppShortcutsDialog(
TabContentsWrapper* tab_contents) {
- browser::ShowCreateWebAppShortcutsDialog(GetNativeHandle(), tab_contents);
+ browser::ShowCreateWebAppShortcutsDialog(GetNativeWindow(), tab_contents);
}
void BrowserView::ShowCreateChromeAppShortcutsDialog(
Profile* profile,
const extensions::Extension* app) {
- browser::ShowCreateChromeAppShortcutsDialog(GetNativeHandle(), profile, app);
+ browser::ShowCreateChromeAppShortcutsDialog(GetNativeWindow(), profile, app);
}
void BrowserView::UserChangedTheme() {
@@ -1245,17 +1245,17 @@ void BrowserView::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {
// won't do anything. We'll need something like an overall clipboard command
// manager to do that.
void BrowserView::Cut() {
- ui_controls::SendKeyPress(GetNativeHandle(), ui::VKEY_X,
+ ui_controls::SendKeyPress(GetNativeWindow(), ui::VKEY_X,
true, false, false, false);
}
void BrowserView::Copy() {
- ui_controls::SendKeyPress(GetNativeHandle(), ui::VKEY_C,
+ ui_controls::SendKeyPress(GetNativeWindow(), ui::VKEY_C,
true, false, false, false);
}
void BrowserView::Paste() {
- ui_controls::SendKeyPress(GetNativeHandle(), ui::VKEY_V,
+ ui_controls::SendKeyPress(GetNativeWindow(), ui::VKEY_V,
true, false, false, false);
}
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/browser/ui/views/select_file_dialog_extension_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698