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

Side by Side Diff: chrome/browser/ui/views/find_bar_host.h

Issue 664703003: Stash: hacks to get MacViews chrome browser window working (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_VIEWS_FIND_BAR_HOST_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FIND_BAR_HOST_H_
6 #define CHROME_BROWSER_UI_VIEWS_FIND_BAR_HOST_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FIND_BAR_HOST_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/ui/find_bar/find_bar.h" 9 #include "chrome/browser/ui/find_bar/find_bar.h"
10 #include "chrome/browser/ui/views/dropdown_bar_host.h" 10 #include "chrome/browser/ui/views/dropdown_bar_host.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 void RegisterAccelerators() override; 114 void RegisterAccelerators() override;
115 void UnregisterAccelerators() override; 115 void UnregisterAccelerators() override;
116 116
117 protected: 117 protected:
118 // Overridden from DropdownBarHost: 118 // Overridden from DropdownBarHost:
119 void OnVisibilityChanged() override; 119 void OnVisibilityChanged() override;
120 120
121 private: 121 private:
122 // Allows implementation to tweak widget position. 122 // Allows implementation to tweak widget position.
123 void GetWidgetPositionNative(gfx::Rect* avoid_overlapping_rect); 123 void GetWidgetPositionNative(gfx::Rect* avoid_overlapping_rect);
124 void SetWidgetPositionNative(const gfx::Rect& new_pos, bool no_redraw);
124 125
125 // Returns the FindBarView. 126 // Returns the FindBarView.
126 FindBarView* find_bar_view() { return static_cast<FindBarView*>(view()); } 127 FindBarView* find_bar_view() { return static_cast<FindBarView*>(view()); }
127 128
128 // A pointer back to the owning controller. 129 // A pointer back to the owning controller.
129 FindBarController* find_bar_controller_; 130 FindBarController* find_bar_controller_;
130 131
131 DISALLOW_COPY_AND_ASSIGN(FindBarHost); 132 DISALLOW_COPY_AND_ASSIGN(FindBarHost);
132 }; 133 };
133 134
134 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_HOST_H_ 135 #endif // CHROME_BROWSER_UI_VIEWS_FIND_BAR_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_keybinding_registry_views.cc ('k') | chrome/browser/ui/views/find_bar_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698