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

Side by Side Diff: chrome/browser/tab_contents/tab_contents_view_gtk.cc

Issue 99166: Linux findbar improvements:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
« no previous file with comments | « chrome/browser/gtk/tab_contents_container_gtk.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_gtk.h" 5 #include "chrome/browser/tab_contents/tab_contents_view_gtk.h"
6 6
7 #include <gdk/gdk.h> 7 #include <gdk/gdk.h>
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 else 175 else
176 gtk_widget_grab_focus(content_view_); 176 gtk_widget_grab_focus(content_view_);
177 } 177 }
178 178
179 void TabContentsViewGtk::StoreFocus() { 179 void TabContentsViewGtk::StoreFocus() {
180 NOTIMPLEMENTED(); 180 NOTIMPLEMENTED();
181 } 181 }
182 182
183 void TabContentsViewGtk::RestoreFocus() { 183 void TabContentsViewGtk::RestoreFocus() {
184 // TODO(estade): implement this function. 184 // TODO(estade): implement this function.
185 // For now just assume we are viewing the tab for the first time. 185 NOTIMPLEMENTED() << " Need to restore the focus position on this page.";
186 SetInitialFocus();
187 NOTIMPLEMENTED() << " -- need to restore the focus position on this page.";
188 } 186 }
189 187
190 void TabContentsViewGtk::UpdateDragCursor(bool is_drop_target) { 188 void TabContentsViewGtk::UpdateDragCursor(bool is_drop_target) {
191 NOTIMPLEMENTED(); 189 NOTIMPLEMENTED();
192 } 190 }
193 191
194 // This is called when we the renderer asks us to take focus back (i.e., it has 192 // This is called when we the renderer asks us to take focus back (i.e., it has
195 // iterated past the last focusable element on the page). 193 // iterated past the last focusable element on the page).
196 void TabContentsViewGtk::TakeFocus(bool reverse) { 194 void TabContentsViewGtk::TakeFocus(bool reverse) {
197 web_contents()->delegate()->SetFocusToLocationBar(); 195 web_contents()->delegate()->SetFocusToLocationBar();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 // TODO(port): remove me when the above NOTIMPLEMENTED is fixed. 239 // TODO(port): remove me when the above NOTIMPLEMENTED is fixed.
242 if (web_contents()->render_view_host()) 240 if (web_contents()->render_view_host())
243 web_contents()->render_view_host()->DragSourceSystemDragEnded(); 241 web_contents()->render_view_host()->DragSourceSystemDragEnded();
244 } 242 }
245 243
246 gboolean TabContentsViewGtk::OnMouseDown(GtkWidget* widget, 244 gboolean TabContentsViewGtk::OnMouseDown(GtkWidget* widget,
247 GdkEventButton* event, TabContentsViewGtk* view) { 245 GdkEventButton* event, TabContentsViewGtk* view) {
248 view->last_mouse_down_time_ = event->time; 246 view->last_mouse_down_time_ = event->time;
249 return FALSE; 247 return FALSE;
250 } 248 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/tab_contents_container_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698