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

Side by Side Diff: chrome/browser/ui/browser_instant_controller.h

Issue 10915217: Hook up SetInstantPreviewHeight for ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move hidden notification, too. Created 8 years, 3 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) 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_BROWSER_INSTANT_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // Commits the current Instant, returning true on success. This is intended 43 // Commits the current Instant, returning true on success. This is intended
44 // for use from OpenCurrentURL. 44 // for use from OpenCurrentURL.
45 bool OpenInstant(WindowOpenDisposition disposition); 45 bool OpenInstant(WindowOpenDisposition disposition);
46 46
47 // Returns the InstantController or NULL if there is no InstantController for 47 // Returns the InstantController or NULL if there is no InstantController for
48 // this BrowserInstantController. 48 // this BrowserInstantController.
49 InstantController* instant() const { return instant_.get(); } 49 InstantController* instant() const { return instant_.get(); }
50 50
51 private: 51 private:
52 // Overridden from InstantControllerDelegate: 52 // Overridden from InstantControllerDelegate:
53 virtual void ShowInstant() OVERRIDE; 53 virtual void ShowInstant(int height, InstantSizeUnits units) OVERRIDE;
54 virtual void HideInstant() OVERRIDE; 54 virtual void HideInstant() OVERRIDE;
55 virtual void CommitInstant(TabContents* preview) OVERRIDE; 55 virtual void CommitInstant(TabContents* preview) OVERRIDE;
56 virtual void SetSuggestedText(const string16& text, 56 virtual void SetSuggestedText(const string16& text,
57 InstantCompleteBehavior behavior) OVERRIDE; 57 InstantCompleteBehavior behavior) OVERRIDE;
58 virtual gfx::Rect GetInstantBounds() OVERRIDE; 58 virtual gfx::Rect GetInstantBounds() OVERRIDE;
59 virtual void InstantPreviewFocused() OVERRIDE; 59 virtual void InstantPreviewFocused() OVERRIDE;
60 virtual TabContents* GetActiveTabContents() const OVERRIDE; 60 virtual TabContents* GetActiveTabContents() const OVERRIDE;
61 61
62 // Overridden from content::NotificationObserver: 62 // Overridden from content::NotificationObserver:
63 virtual void Observe(int type, 63 virtual void Observe(int type,
(...skipping 13 matching lines...) Expand all
77 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; 77 scoped_ptr<InstantUnloadHandler> instant_unload_handler_;
78 78
79 PrefChangeRegistrar profile_pref_registrar_; 79 PrefChangeRegistrar profile_pref_registrar_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController); 81 DISALLOW_COPY_AND_ASSIGN(BrowserInstantController);
82 }; 82 };
83 83
84 } // namespace chrome 84 } // namespace chrome
85 85
86 #endif // CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_ 86 #endif // CHROME_BROWSER_UI_BROWSER_INSTANT_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/instant/instant_loader_delegate.h ('k') | chrome/browser/ui/browser_instant_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698