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

Side by Side Diff: chrome/browser/ui/browser_command_controller.cc

Issue 1091703002: Eliminate faux-RTTI code from BrowserView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert to patch set 2 Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/browser_commands.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/browser_command_controller.h" 5 #include "chrome/browser/ui/browser_command_controller.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "chrome/app/chrome_command_ids.h" 9 #include "chrome/app/chrome_command_ids.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 case IDC_ENCODING_WINDOWS1256: 599 case IDC_ENCODING_WINDOWS1256:
600 case IDC_ENCODING_ISO88598: 600 case IDC_ENCODING_ISO88598:
601 case IDC_ENCODING_ISO88598I: 601 case IDC_ENCODING_ISO88598I:
602 case IDC_ENCODING_WINDOWS1255: 602 case IDC_ENCODING_WINDOWS1255:
603 case IDC_ENCODING_WINDOWS1258: 603 case IDC_ENCODING_WINDOWS1258:
604 browser_->OverrideEncoding(id); 604 browser_->OverrideEncoding(id);
605 break; 605 break;
606 606
607 // Clipboard commands 607 // Clipboard commands
608 case IDC_CUT: 608 case IDC_CUT:
609 Cut(browser_);
610 break;
611 case IDC_COPY: 609 case IDC_COPY:
612 Copy(browser_);
613 break;
614 case IDC_PASTE: 610 case IDC_PASTE:
615 Paste(browser_); 611 CutCopyPaste(browser_, id);
616 break; 612 break;
617 613
618 // Find-in-page 614 // Find-in-page
619 case IDC_FIND: 615 case IDC_FIND:
620 Find(browser_); 616 Find(browser_);
621 break; 617 break;
622 case IDC_FIND_NEXT: 618 case IDC_FIND_NEXT:
623 FindNext(browser_); 619 FindNext(browser_);
624 break; 620 break;
625 case IDC_FIND_PREVIOUS: 621 case IDC_FIND_PREVIOUS:
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
1361 1357
1362 BrowserWindow* BrowserCommandController::window() { 1358 BrowserWindow* BrowserCommandController::window() {
1363 return browser_->window(); 1359 return browser_->window();
1364 } 1360 }
1365 1361
1366 Profile* BrowserCommandController::profile() { 1362 Profile* BrowserCommandController::profile() {
1367 return browser_->profile(); 1363 return browser_->profile();
1368 } 1364 }
1369 1365
1370 } // namespace chrome 1366 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/browser_commands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698