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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 14139013: Hide location bar on Javascript-initiated scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore handling of ViewMsg_UpdateTopControlsState in RenderViewImpl. Created 7 years, 7 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) 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 10 matching lines...) Expand all
21 #include "content/common/content_export.h" 21 #include "content/common/content_export.h"
22 #include "content/public/browser/notification_observer.h" 22 #include "content/public/browser/notification_observer.h"
23 #include "content/public/browser/notification_registrar.h" 23 #include "content/public/browser/notification_registrar.h"
24 #include "content/public/browser/web_contents.h" 24 #include "content/public/browser/web_contents.h"
25 #include "content/public/common/renderer_preferences.h" 25 #include "content/public/common/renderer_preferences.h"
26 #include "content/public/common/three_d_api_types.h" 26 #include "content/public/common/three_d_api_types.h"
27 #include "net/base/load_states.h" 27 #include "net/base/load_states.h"
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
29 #include "ui/gfx/rect_f.h" 29 #include "ui/gfx/rect_f.h"
30 #include "ui/gfx/size.h" 30 #include "ui/gfx/size.h"
31 #include "ui/gfx/vector2d.h"
31 #include "webkit/glue/resource_type.h" 32 #include "webkit/glue/resource_type.h"
32 33
33 struct BrowserPluginHostMsg_ResizeGuest_Params; 34 struct BrowserPluginHostMsg_ResizeGuest_Params;
34 struct ViewHostMsg_DateTimeDialogValue_Params; 35 struct ViewHostMsg_DateTimeDialogValue_Params;
35 struct ViewMsg_PostMessage_Params; 36 struct ViewMsg_PostMessage_Params;
36 37
37 namespace content { 38 namespace content {
38 class BrowserPluginEmbedder; 39 class BrowserPluginEmbedder;
39 class BrowserPluginGuest; 40 class BrowserPluginGuest;
40 class BrowserPluginGuestManager; 41 class BrowserPluginGuestManager;
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 552
552 void OnRegisterProtocolHandler(const std::string& protocol, 553 void OnRegisterProtocolHandler(const std::string& protocol,
553 const GURL& url, 554 const GURL& url,
554 const string16& title, 555 const string16& title,
555 bool user_gesture); 556 bool user_gesture);
556 void OnFindReply(int request_id, 557 void OnFindReply(int request_id,
557 int number_of_matches, 558 int number_of_matches,
558 const gfx::Rect& selection_rect, 559 const gfx::Rect& selection_rect,
559 int active_match_ordinal, 560 int active_match_ordinal,
560 bool final_update); 561 bool final_update);
562 void OnDidProgrammaticallyScroll(const gfx::Vector2d& scroll_point);
561 #if defined(OS_ANDROID) 563 #if defined(OS_ANDROID)
562 void OnFindMatchRectsReply(int version, 564 void OnFindMatchRectsReply(int version,
563 const std::vector<gfx::RectF>& rects, 565 const std::vector<gfx::RectF>& rects,
564 const gfx::RectF& active_rect); 566 const gfx::RectF& active_rect);
565 567
566 void OnOpenDateTimeDialog( 568 void OnOpenDateTimeDialog(
567 const ViewHostMsg_DateTimeDialogValue_Params& value); 569 const ViewHostMsg_DateTimeDialogValue_Params& value);
568 #endif 570 #endif
569 void OnCrashedPlugin(const base::FilePath& plugin_path, 571 void OnCrashedPlugin(const base::FilePath& plugin_path,
570 base::ProcessId plugin_pid); 572 base::ProcessId plugin_pid);
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 // Maps the ids of pending image downloads to their callbacks 897 // Maps the ids of pending image downloads to their callbacks
896 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; 898 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap;
897 ImageDownloadMap image_download_map_; 899 ImageDownloadMap image_download_map_;
898 900
899 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 901 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
900 }; 902 };
901 903
902 } // namespace content 904 } // namespace content
903 905
904 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 906 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698