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

Side by Side Diff: chrome/browser/ui/gtk/find_bar_gtk.h

Issue 8607003: gtk: Convert OnFocusIn and OnFocusOut to CHROMEGTK macro in FindBarGtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/ui/gtk/find_bar_gtk.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 GtkTextDirection previous_direction, 156 GtkTextDirection previous_direction,
157 FindBarGtk* find_bar) { 157 FindBarGtk* find_bar) {
158 find_bar->AdjustTextAlignment(); 158 find_bar->AdjustTextAlignment();
159 } 159 }
160 160
161 static void OnKeymapDirectionChanged(GdkKeymap* keymap, 161 static void OnKeymapDirectionChanged(GdkKeymap* keymap,
162 FindBarGtk* find_bar) { 162 FindBarGtk* find_bar) {
163 find_bar->AdjustTextAlignment(); 163 find_bar->AdjustTextAlignment();
164 } 164 }
165 165
166 static gboolean OnFocusIn(GtkWidget* entry, GdkEventFocus* event, 166 CHROMEGTK_CALLBACK_1(FindBarGtk, gboolean, OnFocusIn, GdkEventFocus*);
167 FindBarGtk* find_bar); 167 CHROMEGTK_CALLBACK_1(FindBarGtk, gboolean, OnFocusOut, GdkEventFocus*);
168
169 static gboolean OnFocusOut(GtkWidget* entry, GdkEventFocus* event,
170 FindBarGtk* find_bar);
171 168
172 Browser* browser_; 169 Browser* browser_;
173 BrowserWindowGtk* window_; 170 BrowserWindowGtk* window_;
174 171
175 // Provides colors and information about GTK. 172 // Provides colors and information about GTK.
176 GtkThemeService* theme_service_; 173 GtkThemeService* theme_service_;
177 174
178 // The widget that animates the slide-in and -out of the findbar. 175 // The widget that animates the slide-in and -out of the findbar.
179 scoped_ptr<SlideAnimatorGtk> slide_widget_; 176 scoped_ptr<SlideAnimatorGtk> slide_widget_;
180 177
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // The selection rect we are currently showing. We cache it to avoid covering 229 // The selection rect we are currently showing. We cache it to avoid covering
233 // it up. 230 // it up.
234 gfx::Rect selection_rect_; 231 gfx::Rect selection_rect_;
235 232
236 content::NotificationRegistrar registrar_; 233 content::NotificationRegistrar registrar_;
237 234
238 DISALLOW_COPY_AND_ASSIGN(FindBarGtk); 235 DISALLOW_COPY_AND_ASSIGN(FindBarGtk);
239 }; 236 };
240 237
241 #endif // CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_ 238 #endif // CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/find_bar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698