| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/tab_contents/web_contents_view_mac.h" | 5 #include "chrome/browser/tab_contents/web_contents_view_mac.h" |
| 6 | 6 |
| 7 #include "chrome/browser/browser.h" // TODO(beng): this dependency is awful. | 7 #include "chrome/browser/browser.h" // TODO(beng): this dependency is awful. |
| 8 #include "chrome/browser/cocoa/sad_tab_view.h" | 8 #include "chrome/browser/cocoa/sad_tab_view.h" |
| 9 #include "chrome/browser/renderer_host/render_widget_host.h" | 9 #include "chrome/browser/renderer_host/render_widget_host.h" |
| 10 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" | 10 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" |
| 11 #include "chrome/browser/tab_contents/render_view_context_menu_mac.h" | 11 #include "chrome/browser/tab_contents/render_view_context_menu_mac.h" |
| 12 #include "chrome/browser/tab_contents/web_contents.h" | 12 #include "chrome/browser/tab_contents/web_contents.h" |
| 13 #include "chrome/common/notification_type.h" |
| 13 | 14 |
| 14 #include "chrome/common/temp_scaffolding_stubs.h" | 15 #include "chrome/common/temp_scaffolding_stubs.h" |
| 15 | 16 |
| 16 @interface WebContentsViewCocoa (Private) | 17 @interface WebContentsViewCocoa (Private) |
| 17 - (id)initWithWebContentsViewMac:(WebContentsViewMac*)w; | 18 - (id)initWithWebContentsViewMac:(WebContentsViewMac*)w; |
| 18 - (void)processKeyboardEvent:(NSEvent*)event; | 19 - (void)processKeyboardEvent:(NSEvent*)event; |
| 19 @end | 20 @end |
| 20 | 21 |
| 21 // static | 22 // static |
| 22 WebContentsView* WebContentsView::Create(WebContents* web_contents) { | 23 WebContentsView* WebContentsView::Create(WebContents* web_contents) { |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 } | 280 } |
| 280 | 281 |
| 281 - (void)paste:(id)sender { | 282 - (void)paste:(id)sender { |
| 282 webContentsView_->web_contents()->Paste(); | 283 webContentsView_->web_contents()->Paste(); |
| 283 } | 284 } |
| 284 | 285 |
| 285 // Tons of stuff goes here, where we grab events going on in Cocoaland and send | 286 // Tons of stuff goes here, where we grab events going on in Cocoaland and send |
| 286 // them into the C++ system. TODO(avi): all that jazz | 287 // them into the C++ system. TODO(avi): all that jazz |
| 287 | 288 |
| 288 @end | 289 @end |
| OLD | NEW |