Skip to content

Commit

Permalink
aura: Remove unused Window::Blur().
Browse files Browse the repository at this point in the history
The last use of Window::Blur() was removed recently (crrev.com/329087). So
remove it now.

BUG=none

Review URL: https://codereview.chromium.org/1135063002

Cr-Commit-Position: refs/heads/master@{#329168}
  • Loading branch information
sadrulhc authored and Commit bot committed May 11, 2015
1 parent fad4bd3 commit 83376fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
6 changes: 0 additions & 6 deletions ui/aura/window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -675,12 +675,6 @@ void Window::Focus() {
client->FocusWindow(this);
}

void Window::Blur() {
client::FocusClient* client = client::GetFocusClient(this);
DCHECK(client);
client->FocusWindow(NULL);
}

bool Window::HasFocus() const {
client::FocusClient* client = client::GetFocusClient(this);
return client && client->GetFocusedWindow() == this;
Expand Down
3 changes: 1 addition & 2 deletions ui/aura/window.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,8 @@ class AURA_EXPORT Window : public ui::LayerDelegate,
// that has a delegate set). The toplevel window may be |this|.
Window* GetToplevelWindow();

// Claims or relinquishes the claim to focus.
// Claims focus.
void Focus();
void Blur();

// Returns true if the Window is currently the focused window.
bool HasFocus() const;
Expand Down

0 comments on commit 83376fd

Please sign in to comment.