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

Side by Side Diff: chrome/browser/ui/cocoa/find_bar_bridge.h

Issue 5553002: Fix Find regression where text is not selected once you... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_COCOA_FIND_BAR_BRIDGE_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_FIND_BAR_BRIDGE_H_
6 #define CHROME_BROWSER_UI_COCOA_FIND_BAR_BRIDGE_H_ 6 #define CHROME_BROWSER_UI_COCOA_FIND_BAR_BRIDGE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/browser/ui/find_bar/find_bar.h" 10 #include "chrome/browser/ui/find_bar/find_bar.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual void AudibleAlert(); 70 virtual void AudibleAlert();
71 virtual bool IsFindBarVisible(); 71 virtual bool IsFindBarVisible();
72 virtual void RestoreSavedFocus(); 72 virtual void RestoreSavedFocus();
73 virtual void MoveWindowIfNecessary(const gfx::Rect& selection_rect, 73 virtual void MoveWindowIfNecessary(const gfx::Rect& selection_rect,
74 bool no_redraw); 74 bool no_redraw);
75 75
76 // Methods from FindBarTesting. 76 // Methods from FindBarTesting.
77 virtual bool GetFindBarWindowInfo(gfx::Point* position, 77 virtual bool GetFindBarWindowInfo(gfx::Point* position,
78 bool* fully_visible); 78 bool* fully_visible);
79 virtual string16 GetFindText(); 79 virtual string16 GetFindText();
80 virtual string16 GetFindSelectedText();
80 virtual string16 GetMatchCountText(); 81 virtual string16 GetMatchCountText();
81 82
82 // Used to disable find bar animations when testing. 83 // Used to disable find bar animations when testing.
83 static bool disable_animations_during_testing_; 84 static bool disable_animations_during_testing_;
84 85
85 private: 86 private:
86 // Pointer to the cocoa controller which manages the cocoa view. Is 87 // Pointer to the cocoa controller which manages the cocoa view. Is
87 // never nil. 88 // never nil.
88 FindBarCocoaController* cocoa_controller_; 89 FindBarCocoaController* cocoa_controller_;
89 90
90 // Pointer back to the owning controller. 91 // Pointer back to the owning controller.
91 FindBarController* find_bar_controller_; // weak, owns us 92 FindBarController* find_bar_controller_; // weak, owns us
92 93
93 DISALLOW_COPY_AND_ASSIGN(FindBarBridge); 94 DISALLOW_COPY_AND_ASSIGN(FindBarBridge);
94 }; 95 };
95 96
96 #endif // CHROME_BROWSER_UI_COCOA_FIND_BAR_BRIDGE_H_ 97 #endif // CHROME_BROWSER_UI_COCOA_FIND_BAR_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698