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

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

Issue 880643007: Merge WebWidgetClient into WebViewClient. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual bool shouldReportDetailedMessageForSource(const WTF::String&) overri de; 72 virtual bool shouldReportDetailedMessageForSource(const WTF::String&) overri de;
73 virtual void addMessageToConsole( 73 virtual void addMessageToConsole(
74 LocalFrame*, MessageSource, MessageLevel, 74 LocalFrame*, MessageSource, MessageLevel,
75 const WTF::String& message, unsigned lineNumber, 75 const WTF::String& message, unsigned lineNumber,
76 const WTF::String& sourceID, const WTF::String& stackTrace) override; 76 const WTF::String& sourceID, const WTF::String& stackTrace) override;
77 virtual void scheduleAnimation() override; 77 virtual void scheduleAnimation() override;
78 virtual IntRect rootViewToScreen(const IntRect&) const override; 78 virtual IntRect rootViewToScreen(const IntRect&) const override;
79 virtual WebScreenInfo screenInfo() const override; 79 virtual WebScreenInfo screenInfo() const override;
80 virtual void layoutUpdated(LocalFrame*) const override; 80 virtual void layoutUpdated(LocalFrame*) const override;
81 virtual void setCursor(const Cursor&) override; 81 virtual void setCursor(const Cursor&) override;
82 virtual void setTouchAction(TouchAction) override;
83 82
84 // ChromeClient methods: 83 // ChromeClient methods:
85 virtual String acceptLanguages() override; 84 virtual String acceptLanguages() override;
86 85
87 // ChromeClientImpl: 86 // ChromeClientImpl:
88 void setNewWindowNavigationPolicy(WebNavigationPolicy); 87 void setNewWindowNavigationPolicy(WebNavigationPolicy);
89 88
90 virtual void willSetInputMethodState() override; 89 virtual void willSetInputMethodState() override;
91 virtual void didUpdateTextOfFocusedElementByNonUserInput() override;
92 virtual void showImeIfNeeded() override;
93 90
94 private: 91 private:
95 virtual bool isChromeClientImpl() const override { return true; } 92 virtual bool isChromeClientImpl() const override { return true; }
96 93
97 WebNavigationPolicy getNavigationPolicy(); 94 WebNavigationPolicy getNavigationPolicy();
98 void setCursor(const WebCursorInfo&); 95 void setCursor(const WebCursorInfo&);
99 96
100 WebViewImpl* m_webView; // weak pointer 97 WebViewImpl* m_webView; // weak pointer
101 }; 98 };
102 99
103 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient Impl(), client.isChromeClientImpl()); 100 DEFINE_TYPE_CASTS(ChromeClientImpl, ChromeClient, client, client->isChromeClient Impl(), client.isChromeClientImpl());
104 101
105 } // namespace blink 102 } // namespace blink
106 103
107 #endif // SKY_ENGINE_WEB_CHROMECLIENTIMPL_H_ 104 #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