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

Unified Diff: ui/views/views_delegate.cc

Issue 1005293002: Re-land: Resurrect Aura Linux accessibility. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« ui/views/views.gyp ('K') | « ui/views/views_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/views_delegate.cc
diff --git a/ui/views/views_delegate.cc b/ui/views/views_delegate.cc
index de9ccbbfd92d9b11d9b8e93e2a8915e44b173540..4c1ae4f6b90ae5d70eba822e96959723e7ae3a04 100644
--- a/ui/views/views_delegate.cc
+++ b/ui/views/views_delegate.cc
@@ -4,6 +4,7 @@
#include "ui/views/views_delegate.h"
+#include "base/command_line.h"
#include "ui/views/views_touch_selection_controller_factory.h"
namespace views {
@@ -85,6 +86,11 @@ ui::ContextFactory* ViewsDelegate::GetContextFactory() {
return NULL;
}
+std::string ViewsDelegate::GetApplicationName() {
+ base::FilePath program = base::CommandLine::ForCurrentProcess()->GetProgram();
+ return program.BaseName().AsUTF8Unsafe();
+}
+
#if defined(OS_WIN)
int ViewsDelegate::GetAppbarAutohideEdges(HMONITOR monitor,
const base::Closure& callback) {
« ui/views/views.gyp ('K') | « ui/views/views_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698