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

Side by Side Diff: chrome/browser/ui/find_bar/find_bar_controller.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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_FIND_BAR_FIND_BAR_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 28 matching lines...) Expand all
39 void EndFindSession(SelectionAction action); 39 void EndFindSession(SelectionAction action);
40 40
41 // Accessor for the attached TabContentsWrapper. 41 // Accessor for the attached TabContentsWrapper.
42 TabContentsWrapper* tab_contents() const { return tab_contents_; } 42 TabContentsWrapper* tab_contents() const { return tab_contents_; }
43 43
44 // Changes the TabContents that this FindBar is attached to. This occurs when 44 // Changes the TabContents that this FindBar is attached to. This occurs when
45 // the user switches tabs in the Browser window. |contents| can be NULL. 45 // the user switches tabs in the Browser window. |contents| can be NULL.
46 void ChangeTabContents(TabContentsWrapper* contents); 46 void ChangeTabContents(TabContentsWrapper* contents);
47 47
48 // Overridden from NotificationObserver: 48 // Overridden from NotificationObserver:
49 virtual void Observe(NotificationType type, 49 virtual void Observe(int type,
50 const NotificationSource& source, 50 const NotificationSource& source,
51 const NotificationDetails& details); 51 const NotificationDetails& details);
52 52
53 FindBar* find_bar() const { return find_bar_.get(); } 53 FindBar* find_bar() const { return find_bar_.get(); }
54 54
55 // Reposition |view_location| such that it avoids |avoid_overlapping_rect|, 55 // Reposition |view_location| such that it avoids |avoid_overlapping_rect|,
56 // and return the new location. 56 // and return the new location.
57 static gfx::Rect GetLocationForFindbarView( 57 static gfx::Rect GetLocationForFindbarView(
58 gfx::Rect view_location, 58 gfx::Rect view_location,
59 const gfx::Rect& dialog_bounds, 59 const gfx::Rect& dialog_bounds,
(...skipping 20 matching lines...) Expand all
80 TabContentsWrapper* tab_contents_; 80 TabContentsWrapper* tab_contents_;
81 81
82 // The last match count we reported to the user. This is used by 82 // The last match count we reported to the user. This is used by
83 // UpdateFindBarForCurrentResult to avoid flickering. 83 // UpdateFindBarForCurrentResult to avoid flickering.
84 int last_reported_matchcount_; 84 int last_reported_matchcount_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(FindBarController); 86 DISALLOW_COPY_AND_ASSIGN(FindBarController);
87 }; 87 };
88 88
89 #endif // CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_CONTROLLER_H_ 89 #endif // CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/content_settings/content_setting_bubble_model.cc ('k') | chrome/browser/ui/find_bar/find_bar_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698