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

Side by Side Diff: content/shell/shell_mac.mm

Issue 10830260: Add local file system directory listings support for content shell. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
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 "content/shell/shell.h" 5 #include "content/shell/shell.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 rect->origin.x += kButtonWidth; 115 rect->origin.x += kButtonWidth;
116 } 116 }
117 117
118 } // namespace 118 } // namespace
119 119
120 namespace content { 120 namespace content {
121 121
122 void Shell::PlatformInitialize() { 122 void Shell::PlatformInitialize() {
123 } 123 }
124 124
125 base::StringPiece Shell::PlatformResourceProvider(int key) {
126 return base::StringPiece();
127 }
128
129 void Shell::PlatformCleanUp() { 125 void Shell::PlatformCleanUp() {
130 } 126 }
131 127
132 void Shell::PlatformEnableUIControl(UIControl control, bool is_enabled) { 128 void Shell::PlatformEnableUIControl(UIControl control, bool is_enabled) {
133 int id; 129 int id;
134 switch (control) { 130 switch (control) {
135 case BACK_BUTTON: 131 case BACK_BUTTON:
136 id = IDC_NAV_BACK; 132 id = IDC_NAV_BACK;
137 break; 133 break;
138 case FORWARD_BUTTON: 134 case FORWARD_BUTTON:
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 [[event.os_event characters] isEqual:@"l"]) { 288 [[event.os_event characters] isEqual:@"l"]) {
293 [window_ makeFirstResponder:url_edit_view_]; 289 [window_ makeFirstResponder:url_edit_view_];
294 return; 290 return;
295 } 291 }
296 292
297 [[NSApp mainMenu] performKeyEquivalent:event.os_event]; 293 [[NSApp mainMenu] performKeyEquivalent:event.os_event];
298 } 294 }
299 } 295 }
300 296
301 } // namespace content 297 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698