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

Side by Side Diff: chrome/browser/web_contents.h

Issue 2878: Touchpad support for laptops... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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
« no previous file with comments | « chrome/browser/render_widget_host_hwnd.cc ('k') | chrome/browser/web_contents.cc » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_WEB_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_WEB_CONTENTS_H_
6 #define CHROME_BROWSER_WEB_CONTENTS_H_ 6 #define CHROME_BROWSER_WEB_CONTENTS_H_
7 7
8 #include "base/hash_tables.h" 8 #include "base/hash_tables.h"
9 #include "chrome/browser/download/save_package.h" 9 #include "chrome/browser/download/save_package.h"
10 #include "chrome/browser/fav_icon_helper.h" 10 #include "chrome/browser/fav_icon_helper.h"
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 struct PendingInstall { 486 struct PendingInstall {
487 int32 page_id; 487 int32 page_id;
488 SkBitmap icon; 488 SkBitmap icon;
489 std::wstring title; 489 std::wstring title;
490 GURL url; 490 GURL url;
491 // This object receives the GearsCreateShortcutCallback and routes the 491 // This object receives the GearsCreateShortcutCallback and routes the
492 // message back to the WebContents, if we haven't been deleted. 492 // message back to the WebContents, if we haven't been deleted.
493 GearsCreateShortcutCallbackFunctor* callback_functor; 493 GearsCreateShortcutCallbackFunctor* callback_functor;
494 }; 494 };
495 495
496 void ScrollCommon(UINT message, int scroll_type, short position,
497 HWND scrollbar);
496 bool ScrollZoom(int scroll_type); 498 bool ScrollZoom(int scroll_type);
497 void WheelZoom(int distance); 499 void WheelZoom(int distance);
498 500
499 // Backend for LoadURL that optionally creates a history entry. The 501 // Backend for LoadURL that optionally creates a history entry. The
500 // transition type will be ignored if a history entry is not created. 502 // transition type will be ignored if a history entry is not created.
501 void LoadURL(const std::wstring& url, bool create_history_entry, 503 void LoadURL(const std::wstring& url, bool create_history_entry,
502 PageTransition::Type transition); 504 PageTransition::Type transition);
503 505
504 // Windows Event handlers 506 // Windows Event handlers
505 virtual void OnDestroy(); 507 virtual void OnDestroy();
506 virtual void OnHScroll(int scroll_type, short position, HWND scrollbar); 508 virtual void OnHScroll(int scroll_type, short position, HWND scrollbar);
507 virtual void OnMouseLeave(); 509 virtual void OnMouseLeave();
508 virtual LRESULT OnMouseRange(UINT msg, WPARAM w_param, LPARAM l_param); 510 virtual LRESULT OnMouseRange(UINT msg, WPARAM w_param, LPARAM l_param);
509 virtual void OnPaint(HDC junk_dc); 511 virtual void OnPaint(HDC junk_dc);
510 virtual LRESULT OnReflectedMessage(UINT msg, WPARAM w_param, LPARAM l_param); 512 virtual LRESULT OnReflectedMessage(UINT msg, WPARAM w_param, LPARAM l_param);
511 virtual void OnSetFocus(HWND window); 513 virtual void OnSetFocus(HWND window);
512 virtual void OnVScroll(int scroll_type, short position, HWND scrollbar); 514 virtual void OnVScroll(int scroll_type, short position, HWND scrollbar);
513 virtual void OnWindowPosChanged(WINDOWPOS* window_pos); 515 virtual void OnWindowPosChanged(WINDOWPOS* window_pos);
516 virtual void OnSize(UINT param, const CSize& size);
517 virtual LRESULT OnNCCalcSize(BOOL w_param, LPARAM l_param);
514 518
515 // Callback from HistoryService for our request for a favicon. 519 // Callback from HistoryService for our request for a favicon.
516 void OnFavIconData(HistoryService::Handle handle, 520 void OnFavIconData(HistoryService::Handle handle,
517 bool know_favicon, 521 bool know_favicon,
518 scoped_refptr<RefCountedBytes> data, 522 scoped_refptr<RefCountedBytes> data,
519 bool expired); 523 bool expired);
520 524
521 // NotificationObserver implementation. 525 // NotificationObserver implementation.
522 virtual void Observe(NotificationType type, 526 virtual void Observe(NotificationType type,
523 const NotificationSource& source, 527 const NotificationSource& source,
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 typedef base::hash_map<int, RenderWidgetHost*> PendingWidgets; 737 typedef base::hash_map<int, RenderWidgetHost*> PendingWidgets;
734 PendingWidgets pending_widgets_; 738 PendingWidgets pending_widgets_;
735 739
736 // Non-null if we're displaying content for a web app. 740 // Non-null if we're displaying content for a web app.
737 scoped_refptr<WebApp> web_app_; 741 scoped_refptr<WebApp> web_app_;
738 742
739 DISALLOW_COPY_AND_ASSIGN(WebContents); 743 DISALLOW_COPY_AND_ASSIGN(WebContents);
740 }; 744 };
741 745
742 #endif // CHROME_BROWSER_WEB_CONTENTS_H_ 746 #endif // CHROME_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/render_widget_host_hwnd.cc ('k') | chrome/browser/web_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698