| 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/cocoa/browser_window_cocoa.h" | 5 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "chrome/browser/ui/cocoa/status_bubble_mac.h" | 35 #include "chrome/browser/ui/cocoa/status_bubble_mac.h" |
| 36 #include "chrome/browser/ui/cocoa/task_manager_mac.h" | 36 #include "chrome/browser/ui/cocoa/task_manager_mac.h" |
| 37 #import "chrome/browser/ui/cocoa/theme_install_bubble_view.h" | 37 #import "chrome/browser/ui/cocoa/theme_install_bubble_view.h" |
| 38 #import "chrome/browser/ui/cocoa/toolbar/toolbar_controller.h" | 38 #import "chrome/browser/ui/cocoa/toolbar/toolbar_controller.h" |
| 39 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 39 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 40 #include "chrome/browser/ui/webui/task_manager_dialog.h" | 40 #include "chrome/browser/ui/webui/task_manager_dialog.h" |
| 41 #include "chrome/common/chrome_notification_types.h" | 41 #include "chrome/common/chrome_notification_types.h" |
| 42 #include "chrome/common/chrome_switches.h" | 42 #include "chrome/common/chrome_switches.h" |
| 43 #include "chrome/common/pref_names.h" | 43 #include "chrome/common/pref_names.h" |
| 44 #include "content/browser/tab_contents/tab_contents.h" | 44 #include "content/browser/tab_contents/tab_contents.h" |
| 45 #include "content/common/notification_service.h" | 45 #include "content/public/browser/notification_source.h" |
| 46 #include "content/public/browser/native_web_keyboard_event.h" | 46 #include "content/public/browser/native_web_keyboard_event.h" |
| 47 #include "content/public/browser/notification_details.h" | 47 #include "content/public/browser/notification_details.h" |
| 48 #include "grit/chromium_strings.h" | 48 #include "grit/chromium_strings.h" |
| 49 #include "grit/generated_resources.h" | 49 #include "grit/generated_resources.h" |
| 50 #include "ui/base/l10n/l10n_util_mac.h" | 50 #include "ui/base/l10n/l10n_util_mac.h" |
| 51 #include "ui/gfx/rect.h" | 51 #include "ui/gfx/rect.h" |
| 52 | 52 |
| 53 // Replicate specific 10.7 SDK declarations for building with prior SDKs. | 53 // Replicate specific 10.7 SDK declarations for building with prior SDKs. |
| 54 #if !defined(MAC_OS_X_VERSION_10_7) || \ | 54 #if !defined(MAC_OS_X_VERSION_10_7) || \ |
| 55 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 | 55 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 |
| (...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 point.y = NSMaxY(bounds) - rect.bottom(); | 611 point.y = NSMaxY(bounds) - rect.bottom(); |
| 612 point = [view convertPoint:point toView:nil]; | 612 point = [view convertPoint:point toView:nil]; |
| 613 point = [[view window] convertBaseToScreen:point]; | 613 point = [[view window] convertBaseToScreen:point]; |
| 614 | 614 |
| 615 // |menu| will automatically release itself on close. | 615 // |menu| will automatically release itself on close. |
| 616 AvatarMenuBubbleController* menu = | 616 AvatarMenuBubbleController* menu = |
| 617 [[AvatarMenuBubbleController alloc] initWithBrowser:browser_ | 617 [[AvatarMenuBubbleController alloc] initWithBrowser:browser_ |
| 618 anchoredAt:point]; | 618 anchoredAt:point]; |
| 619 [menu showWindow:nil]; | 619 [menu showWindow:nil]; |
| 620 } | 620 } |
| OLD | NEW |