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

Side by Side Diff: third_party/WebKit/Source/core/loader/EmptyClients.h

Issue 2905283003: Remove a bunch of dead code around WindowFeatures (Closed)
Patch Set: Use WebWindowFeatures everywhere Created 3 years, 6 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 /* 1 /*
2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org) 2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org)
3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 IntRect PageRect() override { return IntRect(); } 88 IntRect PageRect() override { return IntRect(); }
89 89
90 void Focus() override {} 90 void Focus() override {}
91 91
92 bool CanTakeFocus(WebFocusType) override { return false; } 92 bool CanTakeFocus(WebFocusType) override { return false; }
93 void TakeFocus(WebFocusType) override {} 93 void TakeFocus(WebFocusType) override {}
94 94
95 void FocusedNodeChanged(Node*, Node*) override {} 95 void FocusedNodeChanged(Node*, Node*) override {}
96 Page* CreateWindow(LocalFrame*, 96 Page* CreateWindow(LocalFrame*,
97 const FrameLoadRequest&, 97 const FrameLoadRequest&,
98 const WindowFeatures&, 98 const WebWindowFeatures&,
99 NavigationPolicy) override { 99 NavigationPolicy) override {
100 return nullptr; 100 return nullptr;
101 } 101 }
102 void Show(NavigationPolicy) override {} 102 void Show(NavigationPolicy) override {}
103 103
104 void DidOverscroll(const FloatSize&, 104 void DidOverscroll(const FloatSize&,
105 const FloatSize&, 105 const FloatSize&,
106 const FloatPoint&, 106 const FloatPoint&,
107 const FloatSize&) override {} 107 const FloatSize&) override {}
108 108
109 void BeginLifecycleUpdates() override {} 109 void BeginLifecycleUpdates() override {}
110 110
111 bool HadFormInteraction() const override { return false; } 111 bool HadFormInteraction() const override { return false; }
112 112
113 void StartDragging(LocalFrame*, 113 void StartDragging(LocalFrame*,
114 const WebDragData&, 114 const WebDragData&,
115 WebDragOperationsMask, 115 WebDragOperationsMask,
116 const WebImage& drag_image, 116 const WebImage& drag_image,
117 const WebPoint& drag_image_offset) {} 117 const WebPoint& drag_image_offset) {}
118 bool AcceptsLoadDrops() const override { return true; } 118 bool AcceptsLoadDrops() const override { return true; }
119 119
120 void SetToolbarsVisible(bool) override {}
121 bool ToolbarsVisible() override { return false; }
122
123 void SetStatusbarVisible(bool) override {}
124 bool StatusbarVisible() override { return false; }
125
126 void SetScrollbarsVisible(bool) override {}
127 bool ScrollbarsVisible() override { return false; }
128
129 void SetMenubarVisible(bool) override {}
130 bool MenubarVisible() override { return false; }
131
132 void SetResizable(bool) override {}
133
134 bool ShouldReportDetailedMessageForSource(LocalFrame&, 120 bool ShouldReportDetailedMessageForSource(LocalFrame&,
135 const String&) override { 121 const String&) override {
136 return false; 122 return false;
137 } 123 }
138 void AddMessageToConsole(LocalFrame*, 124 void AddMessageToConsole(LocalFrame*,
139 MessageSource, 125 MessageSource,
140 MessageLevel, 126 MessageLevel,
141 const String&, 127 const String&,
142 unsigned, 128 unsigned,
143 const String&, 129 const String&,
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 Frame* NextSibling() const override { return nullptr; } 467 Frame* NextSibling() const override { return nullptr; }
482 Frame* FirstChild() const override { return nullptr; } 468 Frame* FirstChild() const override { return nullptr; }
483 void FrameFocused() const override {} 469 void FrameFocused() const override {}
484 }; 470 };
485 471
486 CORE_EXPORT void FillWithEmptyClients(Page::PageClients&); 472 CORE_EXPORT void FillWithEmptyClients(Page::PageClients&);
487 473
488 } // namespace blink 474 } // namespace blink
489 475
490 #endif // EmptyClients_h 476 #endif // EmptyClients_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698