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

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

Issue 7063003: Make FindBar obey dialog bounds for GTK. Will fix other platforms in separate patches. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Switched to container_->allocation.width Created 9 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
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual bool IsFindBarVisible(); 58 virtual bool IsFindBarVisible();
59 virtual void RestoreSavedFocus(); 59 virtual void RestoreSavedFocus();
60 virtual FindBarTesting* GetFindBarTesting(); 60 virtual FindBarTesting* GetFindBarTesting();
61 61
62 // Methods from FindBarTesting. 62 // Methods from FindBarTesting.
63 virtual bool GetFindBarWindowInfo(gfx::Point* position, 63 virtual bool GetFindBarWindowInfo(gfx::Point* position,
64 bool* fully_visible); 64 bool* fully_visible);
65 virtual string16 GetFindText(); 65 virtual string16 GetFindText();
66 virtual string16 GetFindSelectedText(); 66 virtual string16 GetFindSelectedText();
67 virtual string16 GetMatchCountText(); 67 virtual string16 GetMatchCountText();
68 virtual int GetWidth();
68 69
69 // Overridden from NotificationObserver: 70 // Overridden from NotificationObserver:
70 virtual void Observe(NotificationType type, 71 virtual void Observe(NotificationType type,
71 const NotificationSource& source, 72 const NotificationSource& source,
72 const NotificationDetails& details); 73 const NotificationDetails& details);
73 74
74 private: 75 private:
75 void InitWidgets(); 76 void InitWidgets();
76 77
77 // Store the currently focused widget if it is not in the find bar. 78 // Store the currently focused widget if it is not in the find bar.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // The selection rect we are currently showing. We cache it to avoid covering 233 // The selection rect we are currently showing. We cache it to avoid covering
233 // it up. 234 // it up.
234 gfx::Rect selection_rect_; 235 gfx::Rect selection_rect_;
235 236
236 NotificationRegistrar registrar_; 237 NotificationRegistrar registrar_;
237 238
238 DISALLOW_COPY_AND_ASSIGN(FindBarGtk); 239 DISALLOW_COPY_AND_ASSIGN(FindBarGtk);
239 }; 240 };
240 241
241 #endif // CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_ 242 #endif // CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/find_bar/find_bar_host_browsertest.cc ('k') | chrome/browser/ui/gtk/find_bar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698