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

Side by Side Diff: chrome/browser/gtk/find_bar_gtk.cc

Issue 159715: Implement FindBarGtk::StopAnimation().... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 4 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 | « no previous file | chrome/browser/gtk/slide_animator_gtk.h » ('j') | 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/gtk/find_bar_gtk.h" 5 #include "chrome/browser/gtk/find_bar_gtk.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "base/gfx/gtk_util.h" 10 #include "base/gfx/gtk_util.h"
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 gtk_widget_grab_focus(text_entry_); 263 gtk_widget_grab_focus(text_entry_);
264 // Select all the text. 264 // Select all the text.
265 gtk_entry_select_region(GTK_ENTRY(text_entry_), 0, -1); 265 gtk_entry_select_region(GTK_ENTRY(text_entry_), 0, -1);
266 } 266 }
267 267
268 void FindBarGtk::ClearResults(const FindNotificationDetails& results) { 268 void FindBarGtk::ClearResults(const FindNotificationDetails& results) {
269 UpdateUIForFindResult(results, string16()); 269 UpdateUIForFindResult(results, string16());
270 } 270 }
271 271
272 void FindBarGtk::StopAnimation() { 272 void FindBarGtk::StopAnimation() {
273 // http://code.google.com/p/chromium/issues/detail?id=11979 273 slide_widget_->End();
274 } 274 }
275 275
276 void FindBarGtk::MoveWindowIfNecessary(const gfx::Rect& selection_rect, 276 void FindBarGtk::MoveWindowIfNecessary(const gfx::Rect& selection_rect,
277 bool no_redraw) { 277 bool no_redraw) {
278 // Not moving the window on demand, so do nothing. 278 // Not moving the window on demand, so do nothing.
279 } 279 }
280 280
281 void FindBarGtk::SetFindText(const string16& find_text) { 281 void FindBarGtk::SetFindText(const string16& find_text) {
282 std::string text_entry_utf8 = UTF16ToUTF8(find_text); 282 std::string text_entry_utf8 = UTF16ToUTF8(find_text);
283 283
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 } 572 }
573 573
574 // static 574 // static
575 gboolean FindBarGtk::OnButtonPress(GtkWidget* text_entry, GdkEventButton* e, 575 gboolean FindBarGtk::OnButtonPress(GtkWidget* text_entry, GdkEventButton* e,
576 FindBarGtk* find_bar) { 576 FindBarGtk* find_bar) {
577 find_bar->StoreOutsideFocus(); 577 find_bar->StoreOutsideFocus();
578 578
579 // Continue propagating the event. 579 // Continue propagating the event.
580 return FALSE; 580 return FALSE;
581 } 581 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/slide_animator_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698