OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |