Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Side by Side Diff: chrome/browser/tab_contents/tab_contents_view_mac.mm

Issue 122002: Moving the WM_SETFOCUS message processing out of FocusManager (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/tab_contents_view_mac.h" 5 #include "chrome/browser/tab_contents/tab_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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // the field when we navigated away from it, we should restore 154 // the field when we navigated away from it, we should restore
155 // that selection. 155 // that selection.
156 SetInitialFocus(); 156 SetInitialFocus();
157 } 157 }
158 } 158 }
159 159
160 void TabContentsViewMac::UpdateDragCursor(bool is_drop_target) { 160 void TabContentsViewMac::UpdateDragCursor(bool is_drop_target) {
161 NOTIMPLEMENTED(); 161 NOTIMPLEMENTED();
162 } 162 }
163 163
164 void TabContentsViewMac::GotFocus() {
165 NOTIMPLEMENTED();
166 }
167
164 // This is called when we the renderer asks us to take focus back (i.e., it has 168 // This is called when we the renderer asks us to take focus back (i.e., it has
165 // iterated past the last focusable element on the page). 169 // iterated past the last focusable element on the page).
166 void TabContentsViewMac::TakeFocus(bool reverse) { 170 void TabContentsViewMac::TakeFocus(bool reverse) {
167 if (reverse) { 171 if (reverse) {
168 [[cocoa_view_ window] selectPreviousKeyView:cocoa_view_.get()]; 172 [[cocoa_view_ window] selectPreviousKeyView:cocoa_view_.get()];
169 } else { 173 } else {
170 [[cocoa_view_ window] selectNextKeyView:cocoa_view_.get()]; 174 [[cocoa_view_ window] selectNextKeyView:cocoa_view_.get()];
171 } 175 }
172 } 176 }
173 177
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 } 274 }
271 275
272 - (void)paste:(id)sender { 276 - (void)paste:(id)sender {
273 TabContentsView_->tab_contents()->Paste(); 277 TabContentsView_->tab_contents()->Paste();
274 } 278 }
275 279
276 // Tons of stuff goes here, where we grab events going on in Cocoaland and send 280 // Tons of stuff goes here, where we grab events going on in Cocoaland and send
277 // them into the C++ system. TODO(avi): all that jazz 281 // them into the C++ system. TODO(avi): all that jazz
278 282
279 @end 283 @end
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_mac.h ('k') | chrome/browser/tab_contents/tab_contents_view_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698