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

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

Issue 6250178: Remove random, unused mac code from BrowserView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2171633afd54e449d8e4b6b79cbc83cb51c0be76..160fa76c381d8cb60b516bb4504453f5d322c2b3 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1320,7 +1320,6 @@ void BrowserView::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {
// to windows. The real fix to this bug is to disable the commands when they
// won't do anything. We'll need something like an overall clipboard command
// manager to do that.
-#if !defined(OS_MACOSX)
void BrowserView::Cut() {
ui_controls::SendKeyPress(GetNativeHandle(), ui::VKEY_X,
true, false, false, false);
@@ -1335,24 +1334,6 @@ void BrowserView::Paste() {
ui_controls::SendKeyPress(GetNativeHandle(), ui::VKEY_V,
true, false, false, false);
}
-#else
-// Mac versions. Not tested by antyhing yet;
-// don't assume written == works.
-void BrowserView::Cut() {
- ui_controls::SendKeyPress(GetNativeHandle(), ui::VKEY_X,
- false, false, false, true);
-}
-
-void BrowserView::Copy() {
- ui_controls::SendKeyPress(GetNativeHandle(), ui::VKEY_C,
- false, false, false, true);
-}
-
-void BrowserView::Paste() {
- ui_controls::SendKeyPress(GetNativeHandle(), ui::VKEY_V,
- false, false, false, true);
-}
-#endif
void BrowserView::ToggleTabStripMode() {
InitTabStrip(browser_->tabstrip_model());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698