OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1778 } | 1778 } |
1779 } | 1779 } |
1780 | 1780 |
1781 void Browser::ShowKeyboardOverlay() { | 1781 void Browser::ShowKeyboardOverlay() { |
1782 window_->ShowKeyboardOverlay(window_->GetNativeHandle()); | 1782 window_->ShowKeyboardOverlay(window_->GetNativeHandle()); |
1783 } | 1783 } |
1784 #endif | 1784 #endif |
1785 | 1785 |
1786 void Browser::Exit() { | 1786 void Browser::Exit() { |
1787 UserMetrics::RecordAction(UserMetricsAction("Exit")); | 1787 UserMetrics::RecordAction(UserMetricsAction("Exit")); |
1788 BrowserList::AttemptUserExit(false); | 1788 BrowserList::AttemptUserExit(); |
1789 } | 1789 } |
1790 | 1790 |
1791 void Browser::BookmarkCurrentPage() { | 1791 void Browser::BookmarkCurrentPage() { |
1792 UserMetrics::RecordAction(UserMetricsAction("Star")); | 1792 UserMetrics::RecordAction(UserMetricsAction("Star")); |
1793 | 1793 |
1794 BookmarkModel* model = profile()->GetBookmarkModel(); | 1794 BookmarkModel* model = profile()->GetBookmarkModel(); |
1795 if (!model || !model->IsLoaded()) | 1795 if (!model || !model->IsLoaded()) |
1796 return; // Ignore requests until bookmarks are loaded. | 1796 return; // Ignore requests until bookmarks are loaded. |
1797 | 1797 |
1798 GURL url; | 1798 GURL url; |
(...skipping 3535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5334 window_->GetLocationBar()->ShowFirstRunBubble(bubble_type); | 5334 window_->GetLocationBar()->ShowFirstRunBubble(bubble_type); |
5335 } else { | 5335 } else { |
5336 GlobalErrorService* service = | 5336 GlobalErrorService* service = |
5337 GlobalErrorServiceFactory::GetForProfile(profile()); | 5337 GlobalErrorServiceFactory::GetForProfile(profile()); |
5338 GlobalError* error = service->GetFirstGlobalErrorWithBubbleView(); | 5338 GlobalError* error = service->GetFirstGlobalErrorWithBubbleView(); |
5339 if (error) { | 5339 if (error) { |
5340 error->ShowBubbleView(this); | 5340 error->ShowBubbleView(this); |
5341 } | 5341 } |
5342 } | 5342 } |
5343 } | 5343 } |
OLD | NEW |