| 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" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 } | 148 } |
| 149 | 149 |
| 150 void WebContentsViewMac::UpdateDragCursor(bool is_drop_target) { | 150 void WebContentsViewMac::UpdateDragCursor(bool is_drop_target) { |
| 151 NOTIMPLEMENTED(); | 151 NOTIMPLEMENTED(); |
| 152 } | 152 } |
| 153 | 153 |
| 154 void WebContentsViewMac::TakeFocus(bool reverse) { | 154 void WebContentsViewMac::TakeFocus(bool reverse) { |
| 155 [cocoa_view_.get() becomeFirstResponder]; | 155 [cocoa_view_.get() becomeFirstResponder]; |
| 156 } | 156 } |
| 157 | 157 |
| 158 void WebContentsViewMac::HandleKeyboardEvent(const WebKeyboardEvent& event) { | 158 void WebContentsViewMac::HandleKeyboardEvent( |
| 159 const NativeWebKeyboardEvent& event) { |
| 159 // The renderer returned a keyboard event it did not process. TODO(avi): | 160 // The renderer returned a keyboard event it did not process. TODO(avi): |
| 160 // reconstruct an NSEvent and feed it to the view. | 161 // Grab the NSEvent off |event| and feed it to the view. |
| 161 NOTIMPLEMENTED(); | 162 NOTIMPLEMENTED(); |
| 162 } | 163 } |
| 163 | 164 |
| 164 void WebContentsViewMac::OnFindReply(int request_id, | 165 void WebContentsViewMac::OnFindReply(int request_id, |
| 165 int number_of_matches, | 166 int number_of_matches, |
| 166 const gfx::Rect& selection_rect, | 167 const gfx::Rect& selection_rect, |
| 167 int active_match_ordinal, | 168 int active_match_ordinal, |
| 168 bool final_update) { | 169 bool final_update) { |
| 169 if (find_bar_.get()) { | 170 if (find_bar_.get()) { |
| 170 find_bar_->OnFindReply(request_id, number_of_matches, selection_rect, | 171 find_bar_->OnFindReply(request_id, number_of_matches, selection_rect, |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 NOTREACHED() << "Got a notification we didn't register for."; | 240 NOTREACHED() << "Got a notification we didn't register for."; |
| 240 } | 241 } |
| 241 } | 242 } |
| 242 | 243 |
| 243 @implementation WebContentsViewCocoa | 244 @implementation WebContentsViewCocoa |
| 244 | 245 |
| 245 // Tons of stuff goes here, where we grab events going on in Cocoaland and send | 246 // Tons of stuff goes here, where we grab events going on in Cocoaland and send |
| 246 // them into the C++ system. TODO(avi): all that jazz | 247 // them into the C++ system. TODO(avi): all that jazz |
| 247 | 248 |
| 248 @end | 249 @end |
| OLD | NEW |