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

Unified Diff: mandoline/ui/desktop_ui/browser_window.cc

Issue 1421483003: mandoline: Start adding trace events for mandoline stuff. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with ToT Created 5 years, 2 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
« no previous file with comments | « components/web_view/frame.cc ('k') | sql/mojo/mojo_vfs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/ui/desktop_ui/browser_window.cc
diff --git a/mandoline/ui/desktop_ui/browser_window.cc b/mandoline/ui/desktop_ui/browser_window.cc
index 413ddd3a5f9b5a4dc6181e20f4763323e9967fe2..d51f0ea081a3e415944b05c8da463dadf2a99ce9 100644
--- a/mandoline/ui/desktop_ui/browser_window.cc
+++ b/mandoline/ui/desktop_ui/browser_window.cc
@@ -8,6 +8,7 @@
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
+#include "base/trace_event/trace_event.h"
#include "components/mus/public/cpp/event_matcher.h"
#include "components/mus/public/cpp/scoped_window_ptr.h"
#include "components/mus/public/cpp/window_tree_host_factory.h"
@@ -114,6 +115,7 @@ void BrowserWindow::Close() {
}
void BrowserWindow::ShowOmnibox() {
+ TRACE_EVENT0("desktop_ui", "BrowserWindow::ShowOmnibox");
if (!omnibox_.get()) {
mojo::URLRequestPtr request(mojo::URLRequest::New());
request->url = mojo::String::From("mojo:omnibox");
@@ -131,15 +133,18 @@ void BrowserWindow::ShowOmnibox() {
}
void BrowserWindow::ShowFind() {
+ TRACE_EVENT0("desktop_ui", "BrowserWindow::ShowFind");
toolbar_view_->SetVisible(false);
find_bar_view_->Show();
}
void BrowserWindow::GoBack() {
+ TRACE_EVENT0("desktop_ui", "BrowserWindow::GoBack");
web_view_.web_view()->GoBack();
}
void BrowserWindow::GoForward() {
+ TRACE_EVENT0("desktop_ui", "BrowserWindow::GoForward");
web_view_.web_view()->GoForward();
}
@@ -156,6 +161,7 @@ float BrowserWindow::DIPSToPixels(float value) const {
// BrowserWindow, mus::ViewTreeDelegate implementation:
void BrowserWindow::OnEmbed(mus::Window* root) {
+ TRACE_EVENT0("desktop_ui", "BrowserWindow::OnEmbed");
// BrowserWindow does not support being embedded more than once.
CHECK(!root_);
« no previous file with comments | « components/web_view/frame.cc ('k') | sql/mojo/mojo_vfs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698