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

Side by Side Diff: chrome/browser/ui/cocoa/find_bar/find_bar_bridge.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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/find_bar/find_bar_bridge.mm » ('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) 2010 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_COCOA_FIND_BAR_FIND_BAR_BRIDGE_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_FIND_BAR_FIND_BAR_BRIDGE_H_
6 #define CHROME_BROWSER_UI_COCOA_FIND_BAR_FIND_BAR_BRIDGE_H_ 6 #define CHROME_BROWSER_UI_COCOA_FIND_BAR_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"
11 11
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual void RestoreSavedFocus(); 64 virtual void RestoreSavedFocus();
65 virtual void MoveWindowIfNecessary(const gfx::Rect& selection_rect, 65 virtual void MoveWindowIfNecessary(const gfx::Rect& selection_rect,
66 bool no_redraw); 66 bool no_redraw);
67 67
68 // Methods from FindBarTesting. 68 // Methods from FindBarTesting.
69 virtual bool GetFindBarWindowInfo(gfx::Point* position, 69 virtual bool GetFindBarWindowInfo(gfx::Point* position,
70 bool* fully_visible); 70 bool* fully_visible);
71 virtual string16 GetFindText(); 71 virtual string16 GetFindText();
72 virtual string16 GetFindSelectedText(); 72 virtual string16 GetFindSelectedText();
73 virtual string16 GetMatchCountText(); 73 virtual string16 GetMatchCountText();
74 virtual int GetWidth();
74 75
75 // Used to disable find bar animations when testing. 76 // Used to disable find bar animations when testing.
76 static bool disable_animations_during_testing_; 77 static bool disable_animations_during_testing_;
77 78
78 private: 79 private:
79 // Pointer to the cocoa controller which manages the cocoa view. Is 80 // Pointer to the cocoa controller which manages the cocoa view. Is
80 // never nil. 81 // never nil.
81 FindBarCocoaController* cocoa_controller_; 82 FindBarCocoaController* cocoa_controller_;
82 83
83 // Pointer back to the owning controller. 84 // Pointer back to the owning controller.
84 FindBarController* find_bar_controller_; // weak, owns us 85 FindBarController* find_bar_controller_; // weak, owns us
85 86
86 DISALLOW_COPY_AND_ASSIGN(FindBarBridge); 87 DISALLOW_COPY_AND_ASSIGN(FindBarBridge);
87 }; 88 };
88 89
89 #endif // CHROME_BROWSER_UI_COCOA_FIND_BAR_FIND_BAR_BRIDGE_H_ 90 #endif // CHROME_BROWSER_UI_COCOA_FIND_BAR_FIND_BAR_BRIDGE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/find_bar/find_bar_bridge.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698