| 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 "chrome/browser/ui/browser.h" | 5 #include "chrome/browser/ui/browser.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <shellapi.h> | 9 #include <shellapi.h> |
| 10 #endif // OS_WIN | 10 #endif // OS_WIN |
| (...skipping 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1458 const gfx::Rect& initial_pos, | 1458 const gfx::Rect& initial_pos, |
| 1459 bool user_gesture) { | 1459 bool user_gesture) { |
| 1460 AddNewContents(NULL, new_contents, disposition, initial_pos, user_gesture); | 1460 AddNewContents(NULL, new_contents, disposition, initial_pos, user_gesture); |
| 1461 } | 1461 } |
| 1462 | 1462 |
| 1463 void Browser::CloseTabContents(WebContents* contents) { | 1463 void Browser::CloseTabContents(WebContents* contents) { |
| 1464 CloseContents(contents); | 1464 CloseContents(contents); |
| 1465 } | 1465 } |
| 1466 | 1466 |
| 1467 gfx::NativeWindow Browser::BrowserShowWebDialog( | 1467 gfx::NativeWindow Browser::BrowserShowWebDialog( |
| 1468 WebDialogDelegate* delegate, | 1468 web_dialogs::WebDialogDelegate* delegate, |
| 1469 gfx::NativeWindow parent_window) { | 1469 gfx::NativeWindow parent_window) { |
| 1470 if (!parent_window) | 1470 if (!parent_window) |
| 1471 parent_window = window_->GetNativeHandle(); | 1471 parent_window = window_->GetNativeHandle(); |
| 1472 | 1472 |
| 1473 return browser::ShowWebDialog(parent_window, profile_, this, delegate); | 1473 return browser::ShowWebDialog(parent_window, profile_, this, delegate); |
| 1474 } | 1474 } |
| 1475 | 1475 |
| 1476 void Browser::BrowserRenderWidgetShowing() { | 1476 void Browser::BrowserRenderWidgetShowing() { |
| 1477 RenderWidgetShowing(); | 1477 RenderWidgetShowing(); |
| 1478 } | 1478 } |
| (...skipping 4028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5507 if (contents && !allow_js_access) { | 5507 if (contents && !allow_js_access) { |
| 5508 contents->web_contents()->GetController().LoadURL( | 5508 contents->web_contents()->GetController().LoadURL( |
| 5509 target_url, | 5509 target_url, |
| 5510 content::Referrer(), | 5510 content::Referrer(), |
| 5511 content::PAGE_TRANSITION_LINK, | 5511 content::PAGE_TRANSITION_LINK, |
| 5512 std::string()); // No extra headers. | 5512 std::string()); // No extra headers. |
| 5513 } | 5513 } |
| 5514 | 5514 |
| 5515 return contents != NULL; | 5515 return contents != NULL; |
| 5516 } | 5516 } |
| OLD | NEW |