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

Side by Side Diff: sky/engine/web/ChromeClientImpl.h

Issue 1076623002: Remove our impressive amount of CSS Cursor code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « sky/engine/web/AssertMatchingEnums.cpp ('k') | sky/engine/web/ChromeClientImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 30 matching lines...) Expand all
41 namespace blink { 41 namespace blink {
42 class ColorChooser; 42 class ColorChooser;
43 class ColorChooserClient; 43 class ColorChooserClient;
44 class Element; 44 class Element;
45 class Event; 45 class Event;
46 class KeyboardEvent; 46 class KeyboardEvent;
47 class RenderBox; 47 class RenderBox;
48 class DateTimeChooser; 48 class DateTimeChooser;
49 class DateTimeChooserClient; 49 class DateTimeChooserClient;
50 class WebViewImpl; 50 class WebViewImpl;
51 struct WebCursorInfo;
52 51
53 // Handles window-level notifications from WebCore on behalf of a WebView. 52 // Handles window-level notifications from WebCore on behalf of a WebView.
54 class ChromeClientImpl final : public ChromeClient { 53 class ChromeClientImpl final : public ChromeClient {
55 public: 54 public:
56 explicit ChromeClientImpl(WebViewImpl* webView); 55 explicit ChromeClientImpl(WebViewImpl* webView);
57 virtual ~ChromeClientImpl(); 56 virtual ~ChromeClientImpl();
58 57
59 virtual void* webView() const override; 58 virtual void* webView() const override;
60 59
61 // ChromeClient methods: 60 // ChromeClient methods:
62 virtual void setWindowRect(const FloatRect&) override; 61 virtual void setWindowRect(const FloatRect&) override;
63 virtual FloatRect windowRect() override; 62 virtual FloatRect windowRect() override;
64 virtual void focus() override; 63 virtual void focus() override;
65 virtual bool canTakeFocus(FocusType) override; 64 virtual bool canTakeFocus(FocusType) override;
66 virtual void takeFocus(FocusType) override; 65 virtual void takeFocus(FocusType) override;
67 virtual void focusedNodeChanged(Node*) override; 66 virtual void focusedNodeChanged(Node*) override;
68 virtual void focusedFrameChanged(LocalFrame*) override; 67 virtual void focusedFrameChanged(LocalFrame*) override;
69 68
70 virtual bool shouldReportDetailedMessageForSource(const WTF::String&) overri de; 69 virtual bool shouldReportDetailedMessageForSource(const WTF::String&) overri de;
71 virtual void addMessageToConsole( 70 virtual void addMessageToConsole(
72 LocalFrame*, MessageSource, MessageLevel, 71 LocalFrame*, MessageSource, MessageLevel,
73 const WTF::String& message, unsigned lineNumber, 72 const WTF::String& message, unsigned lineNumber,
74 const WTF::String& sourceID, const WTF::String& stackTrace) override; 73 const WTF::String& sourceID, const WTF::String& stackTrace) override;
75 virtual void scheduleVisualUpdate() override; 74 virtual void scheduleVisualUpdate() override;
76 virtual IntRect rootViewToScreen(const IntRect&) const override; 75 virtual IntRect rootViewToScreen(const IntRect&) const override;
77 virtual WebScreenInfo screenInfo() const override; 76 virtual WebScreenInfo screenInfo() const override;
78 virtual void setCursor(const Cursor&) override;
79 77
80 // ChromeClient methods: 78 // ChromeClient methods:
81 virtual String acceptLanguages() override; 79 virtual String acceptLanguages() override;
82 80
83 private: 81 private:
84 WebNavigationPolicy getNavigationPolicy(); 82 WebNavigationPolicy getNavigationPolicy();
85 void setCursor(const WebCursorInfo&);
86 83
87 WebViewImpl* m_webView; // weak pointer 84 WebViewImpl* m_webView; // weak pointer
88 }; 85 };
89 86
90 } // namespace blink 87 } // namespace blink
91 88
92 #endif // SKY_ENGINE_WEB_CHROMECLIENTIMPL_H_ 89 #endif // SKY_ENGINE_WEB_CHROMECLIENTIMPL_H_
OLDNEW
« no previous file with comments | « sky/engine/web/AssertMatchingEnums.cpp ('k') | sky/engine/web/ChromeClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698