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

Side by Side Diff: chrome/browser/tab_contents/tab_contents_delegate.h

Issue 3105004: Adds support for showing the match preview on views. It's behind the (Closed)
Patch Set: Addressed review comments Created 10 years, 4 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
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_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 // Notification that the preferred size of the contents has changed. 266 // Notification that the preferred size of the contents has changed.
267 // Only called if ShouldEnablePreferredSizeNotifications() returns true. 267 // Only called if ShouldEnablePreferredSizeNotifications() returns true.
268 virtual void UpdatePreferredSize(const gfx::Size& pref_size); 268 virtual void UpdatePreferredSize(const gfx::Size& pref_size);
269 269
270 // Notifies the delegate that something has changed about what content the 270 // Notifies the delegate that something has changed about what content the
271 // TabContents is displaying. Currently this is only fired when displaying 271 // TabContents is displaying. Currently this is only fired when displaying
272 // PDF using the internal PDF plugin. 272 // PDF using the internal PDF plugin.
273 virtual void ContentTypeChanged(TabContents* source); 273 virtual void ContentTypeChanged(TabContents* source);
274 274
275 // Sent when the user does a gesture that results in committing the match
276 // preview. The delegate should replace |source| with the |source|'s match
277 // preview TabContents.
278 virtual void CommitMatchPreview(TabContents* source);
279
275 protected: 280 protected:
276 virtual ~TabContentsDelegate(); 281 virtual ~TabContentsDelegate();
277 }; 282 };
278 283
279 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 284 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/browser/tab_contents/tab_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698