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

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

Issue 2177333002: Move setWindowRect and windowRect calls from WebViewClient to WebWidgetClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change CHECK to a DCHECK Created 4 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 /* 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 namespace blink { 67 namespace blink {
68 68
69 class CORE_EXPORT EmptyChromeClient : public ChromeClient { 69 class CORE_EXPORT EmptyChromeClient : public ChromeClient {
70 public: 70 public:
71 static EmptyChromeClient* create() { return new EmptyChromeClient; } 71 static EmptyChromeClient* create() { return new EmptyChromeClient; }
72 72
73 ~EmptyChromeClient() override {} 73 ~EmptyChromeClient() override {}
74 void chromeDestroyed() override {} 74 void chromeDestroyed() override {}
75 75
76 void* webView() const override { return nullptr; } 76 void* webView() const override { return nullptr; }
77 void setWindowRect(const IntRect&) override {} 77 void setWindowRect(const IntRect&, LocalFrame*) override {}
78 IntRect windowRect() override { return IntRect(); } 78 IntRect rootWindowRect() override { return IntRect(); }
79 79
80 IntRect pageRect() override { return IntRect(); } 80 IntRect pageRect() override { return IntRect(); }
81 81
82 void focus() override {} 82 void focus() override {}
83 83
84 bool canTakeFocus(WebFocusType) override { return false; } 84 bool canTakeFocus(WebFocusType) override { return false; }
85 void takeFocus(WebFocusType) override {} 85 void takeFocus(WebFocusType) override {}
86 86
87 void focusedNodeChanged(Node*, Node*) override {} 87 void focusedNodeChanged(Node*, Node*) override {}
88 Page* createWindow(LocalFrame*, const FrameLoadRequest&, const WindowFeature s&, NavigationPolicy) override { return nullptr; } 88 Page* createWindow(LocalFrame*, const FrameLoadRequest&, const WindowFeature s&, NavigationPolicy) override { return nullptr; }
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 ~EmptyContextMenuClient() override {} 327 ~EmptyContextMenuClient() override {}
328 bool showContextMenu(const ContextMenu*, bool) override { return false; } 328 bool showContextMenu(const ContextMenu*, bool) override { return false; }
329 void clearContextMenu() override {} 329 void clearContextMenu() override {}
330 }; 330 };
331 331
332 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); 332 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&);
333 333
334 } // namespace blink 334 } // namespace blink
335 335
336 #endif // EmptyClients_h 336 #endif // EmptyClients_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698