| 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_navigator.h" | 5 #include "chrome/browser/ui/browser_navigator.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/stringprintf.h" | 10 #include "base/stringprintf.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "chrome/browser/ui/omnibox/location_bar.h" | 25 #include "chrome/browser/ui/omnibox/location_bar.h" |
| 26 #include "chrome/browser/ui/status_bubble.h" | 26 #include "chrome/browser/ui/status_bubble.h" |
| 27 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 27 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 28 #include "chrome/browser/web_applications/web_app.h" | 28 #include "chrome/browser/web_applications/web_app.h" |
| 29 #include "chrome/common/chrome_notification_types.h" | 29 #include "chrome/common/chrome_notification_types.h" |
| 30 #include "chrome/common/extensions/extension.h" | 30 #include "chrome/common/extensions/extension.h" |
| 31 #include "chrome/common/pref_names.h" | 31 #include "chrome/common/pref_names.h" |
| 32 #include "chrome/common/url_constants.h" | 32 #include "chrome/common/url_constants.h" |
| 33 #include "content/browser/browser_url_handler.h" | 33 #include "content/browser/browser_url_handler.h" |
| 34 #include "content/browser/renderer_host/render_view_host.h" | 34 #include "content/browser/renderer_host/render_view_host.h" |
| 35 #include "content/browser/site_instance.h" | |
| 36 #include "content/public/browser/notification_service.h" | 35 #include "content/public/browser/notification_service.h" |
| 37 #include "content/public/browser/render_view_host_delegate.h" | 36 #include "content/public/browser/render_view_host_delegate.h" |
| 37 #include "content/public/browser/site_instance.h" |
| 38 #include "content/public/browser/web_contents.h" | 38 #include "content/public/browser/web_contents.h" |
| 39 #include "net/http/http_util.h" | 39 #include "net/http/http_util.h" |
| 40 | 40 |
| 41 using content::GlobalRequestID; | 41 using content::GlobalRequestID; |
| 42 using content::WebContents; | 42 using content::WebContents; |
| 43 | 43 |
| 44 namespace { | 44 namespace { |
| 45 | 45 |
| 46 // Returns true if the specified Browser can open tabs. Not all Browsers support | 46 // Returns true if the specified Browser can open tabs. Not all Browsers support |
| 47 // multiple tabs, such as app frames and popups. This function returns false for | 47 // multiple tabs, such as app frames and popups. This function returns false for |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 popup_bounds.height() > max_height || | 669 popup_bounds.height() > max_height || |
| 670 popup_bounds.width() == 0 || | 670 popup_bounds.width() == 0 || |
| 671 popup_bounds.height() == 0) { | 671 popup_bounds.height() == 0) { |
| 672 return NEW_FOREGROUND_TAB; | 672 return NEW_FOREGROUND_TAB; |
| 673 } | 673 } |
| 674 return NEW_POPUP; | 674 return NEW_POPUP; |
| 675 } | 675 } |
| 676 #endif | 676 #endif |
| 677 | 677 |
| 678 } // namespace browser | 678 } // namespace browser |
| OLD | NEW |