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 <commctrl.h> | 7 #include <commctrl.h> |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
9 #include <io.h> | 9 #include <io.h> |
10 #include <windows.h> | 10 #include <windows.h> |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 CreateNewWindow( | 229 CreateNewWindow( |
230 shell->web_contents()->GetBrowserContext(), | 230 shell->web_contents()->GetBrowserContext(), |
231 GURL(), NULL, MSG_ROUTING_NONE, NULL); | 231 GURL(), NULL, MSG_ROUTING_NONE, NULL); |
232 break; | 232 break; |
233 case IDM_CLOSE_WINDOW: | 233 case IDM_CLOSE_WINDOW: |
234 DestroyWindow(hwnd); | 234 DestroyWindow(hwnd); |
235 break; | 235 break; |
236 case IDM_EXIT: | 236 case IDM_EXIT: |
237 PlatformExit(); | 237 PlatformExit(); |
238 break; | 238 break; |
| 239 case IDM_SHOW_DEVELOPER_TOOLS: |
| 240 shell->ShowDevTools(); |
| 241 break; |
239 case IDC_NAV_BACK: | 242 case IDC_NAV_BACK: |
240 shell->GoBackOrForward(-1); | 243 shell->GoBackOrForward(-1); |
241 break; | 244 break; |
242 case IDC_NAV_FORWARD: | 245 case IDC_NAV_FORWARD: |
243 shell->GoBackOrForward(1); | 246 shell->GoBackOrForward(1); |
244 break; | 247 break; |
245 case IDC_NAV_RELOAD: | 248 case IDC_NAV_RELOAD: |
246 shell->Reload(); | 249 shell->Reload(); |
247 break; | 250 break; |
248 case IDC_NAV_STOP: | 251 case IDC_NAV_STOP: |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 | 303 |
301 return CallWindowProc(shell->default_edit_wnd_proc_, hwnd, message, wParam, | 304 return CallWindowProc(shell->default_edit_wnd_proc_, hwnd, message, wParam, |
302 lParam); | 305 lParam); |
303 } | 306 } |
304 | 307 |
305 void Shell::PlatformSetTitle(const string16& text) { | 308 void Shell::PlatformSetTitle(const string16& text) { |
306 ::SetWindowText(window_, text.c_str()); | 309 ::SetWindowText(window_, text.c_str()); |
307 } | 310 } |
308 | 311 |
309 } // namespace content | 312 } // namespace content |
OLD | NEW |