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

Side by Side Diff: ui/base/accelerators/accelerator_cocoa.mm

Issue 8695005: Move accelerator related files to ui/base/accelerators (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/accelerators/accelerator_cocoa.h ('k') | ui/base/accelerators/accelerator_gtk.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ui/base/models/accelerator_cocoa.h" 5 #include "ui/base/accelerators/accelerator_cocoa.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 AcceleratorCocoa::AcceleratorCocoa() : Accelerator() {} 9 AcceleratorCocoa::AcceleratorCocoa() : Accelerator() {}
10 10
11 AcceleratorCocoa::AcceleratorCocoa(NSString* key_code, NSUInteger mask) 11 AcceleratorCocoa::AcceleratorCocoa(NSString* key_code, NSUInteger mask)
12 : Accelerator(ui::VKEY_UNKNOWN, mask), 12 : Accelerator(ui::VKEY_UNKNOWN, mask),
13 characters_([key_code copy]) { 13 characters_([key_code copy]) {
14 } 14 }
15 15
(...skipping 16 matching lines...) Expand all
32 bool AcceleratorCocoa::operator==(const AcceleratorCocoa& rhs) const { 32 bool AcceleratorCocoa::operator==(const AcceleratorCocoa& rhs) const {
33 return [characters_ isEqualToString:rhs.characters_.get()] && 33 return [characters_ isEqualToString:rhs.characters_.get()] &&
34 (modifiers_ == rhs.modifiers_); 34 (modifiers_ == rhs.modifiers_);
35 } 35 }
36 36
37 bool AcceleratorCocoa::operator!=(const AcceleratorCocoa& rhs) const { 37 bool AcceleratorCocoa::operator!=(const AcceleratorCocoa& rhs) const {
38 return !(*this == rhs); 38 return !(*this == rhs);
39 } 39 }
40 40
41 } // namespace ui 41 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/accelerators/accelerator_cocoa.h ('k') | ui/base/accelerators/accelerator_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698