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

Unified Diff: ui/ozone/platform/caca/caca_window.cc

Issue 1456163002: ozone: caca: Fix MouseEvent ctor & add PlatformWindow::SetWindowTitle override (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/caca/caca_window.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/caca/caca_window.cc
diff --git a/ui/ozone/platform/caca/caca_window.cc b/ui/ozone/platform/caca/caca_window.cc
index 0a346e419e05dec126f067d98b6c546ec15d9eef..16be1885fdcfcbfa02c23660742d77bfd30b61b0 100644
--- a/ui/ozone/platform/caca/caca_window.cc
+++ b/ui/ozone/platform/caca/caca_window.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
+#include "base/strings/utf_string_conversions.h"
#include "base/trace_event/trace_event.h"
#include "ui/events/ozone/events_ozone.h"
#include "ui/events/platform/platform_event_source.h"
@@ -140,6 +141,10 @@ PlatformImeController* CacaWindow::GetPlatformImeController() {
return nullptr;
}
+void CacaWindow::SetTitle(const base::string16& title) {
+ caca_set_display_title(display_.get(), UTF16ToUTF8(title).c_str());
+}
+
bool CacaWindow::CanDispatchEvent(const PlatformEvent& event) { return true; }
uint32_t CacaWindow::DispatchEvent(const PlatformEvent& ne) {
« no previous file with comments | « ui/ozone/platform/caca/caca_window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698