| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/gtk/browser_window_gtk.h" | 5 #include "chrome/browser/gtk/browser_window_gtk.h" |
| 6 | 6 |
| 7 #include <gdk/gdkkeysyms.h> | 7 #include <gdk/gdkkeysyms.h> |
| 8 | 8 |
| 9 #include "base/base_paths_linux.h" | 9 #include "base/base_paths_linux.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 | 487 |
| 488 void BrowserWindowGtk::ShowNewProfileDialog() { | 488 void BrowserWindowGtk::ShowNewProfileDialog() { |
| 489 NOTIMPLEMENTED(); | 489 NOTIMPLEMENTED(); |
| 490 } | 490 } |
| 491 | 491 |
| 492 void BrowserWindowGtk::ShowHTMLDialog(HtmlDialogUIDelegate* delegate, | 492 void BrowserWindowGtk::ShowHTMLDialog(HtmlDialogUIDelegate* delegate, |
| 493 void* parent_window) { | 493 void* parent_window) { |
| 494 NOTIMPLEMENTED(); | 494 NOTIMPLEMENTED(); |
| 495 } | 495 } |
| 496 | 496 |
| 497 void BrowserWindowGtk::ConfirmBrowserCloseWithPendingDownloads() { |
| 498 NOTIMPLEMENTED(); |
| 499 browser_->InProgressDownloadResponse(false); |
| 500 } |
| 501 |
| 497 void BrowserWindowGtk::Observe(NotificationType type, | 502 void BrowserWindowGtk::Observe(NotificationType type, |
| 498 const NotificationSource& source, | 503 const NotificationSource& source, |
| 499 const NotificationDetails& details) { | 504 const NotificationDetails& details) { |
| 500 if (type == NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED) { | 505 if (type == NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED) { |
| 501 MaybeShowBookmarkBar(browser_->GetSelectedTabContents()); | 506 MaybeShowBookmarkBar(browser_->GetSelectedTabContents()); |
| 502 } else { | 507 } else { |
| 503 NOTREACHED() << "Got a notification we didn't register for!"; | 508 NOTREACHED() << "Got a notification we didn't register for!"; |
| 504 } | 509 } |
| 505 } | 510 } |
| 506 | 511 |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 } else { | 675 } else { |
| 671 browser_window->ExecuteBrowserCommand(command_id); | 676 browser_window->ExecuteBrowserCommand(command_id); |
| 672 } | 677 } |
| 673 | 678 |
| 674 return TRUE; | 679 return TRUE; |
| 675 } | 680 } |
| 676 | 681 |
| 677 void BrowserWindowGtk::ExecuteBrowserCommand(int id) { | 682 void BrowserWindowGtk::ExecuteBrowserCommand(int id) { |
| 678 browser_->ExecuteCommand(id); | 683 browser_->ExecuteCommand(id); |
| 679 } | 684 } |
| OLD | NEW |