| 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/sad_tab_helper.h" | 5 #include "chrome/browser/ui/sad_tab_helper.h" |
| 6 | 6 |
| 7 #include "base/logging.h" |
| 7 #include "chrome/browser/browser_shutdown.h" | 8 #include "chrome/browser/browser_shutdown.h" |
| 8 #include "content/public/browser/notification_source.h" | 9 #include "content/public/browser/notification_source.h" |
| 9 #include "content/public/browser/notification_types.h" | 10 #include "content/public/browser/notification_types.h" |
| 10 #include "content/public/browser/web_contents.h" | 11 #include "content/public/browser/web_contents.h" |
| 11 #include "content/public/browser/web_contents_view.h" | 12 #include "content/public/browser/web_contents_view.h" |
| 12 | 13 |
| 13 #if defined(OS_MACOSX) | 14 #if defined(OS_MACOSX) |
| 14 #include "chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h" | 15 #include "chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h" |
| 15 #elif defined(TOOLKIT_VIEWS) | 16 #elif defined(TOOLKIT_VIEWS) |
| 16 #include "chrome/browser/ui/views/sad_tab_view.h" | 17 #include "chrome/browser/ui/views/sad_tab_view.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 gtk_container_add(GTK_CONTAINER(expanded_container), sad_tab_->widget()); | 129 gtk_container_add(GTK_CONTAINER(expanded_container), sad_tab_->widget()); |
| 129 gtk_widget_show(sad_tab_->widget()); | 130 gtk_widget_show(sad_tab_->widget()); |
| 130 #else | 131 #else |
| 131 #error Unknown platform | 132 #error Unknown platform |
| 132 #endif | 133 #endif |
| 133 } | 134 } |
| 134 | 135 |
| 135 bool SadTabHelper::HasSadTab() { | 136 bool SadTabHelper::HasSadTab() { |
| 136 return sad_tab_.get() != NULL; | 137 return sad_tab_.get() != NULL; |
| 137 } | 138 } |
| OLD | NEW |